Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: magnetometer: bmc150: Drop ACPI_PTR() usage

Avoiding unused variable warnings when using this macro adds
complexity that in simple cases like this one is not justified
for the small saving in data.

Drop unused linux/acpi.h includes.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202312040109.Csnmqnb2-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202311171116.47sUbZV5-lkp@intel.com/
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20231231183514.566609-19-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

+2 -4
+1 -2
drivers/iio/magnetometer/bmc150_magn_i2c.c
··· 11 11 #include <linux/mod_devicetable.h> 12 12 #include <linux/i2c.h> 13 13 #include <linux/module.h> 14 - #include <linux/acpi.h> 15 14 #include <linux/regmap.h> 16 15 17 16 #include "bmc150_magn.h" ··· 67 68 .driver = { 68 69 .name = "bmc150_magn_i2c", 69 70 .of_match_table = bmc150_magn_of_match, 70 - .acpi_match_table = ACPI_PTR(bmc150_magn_acpi_match), 71 + .acpi_match_table = bmc150_magn_acpi_match, 71 72 .pm = &bmc150_magn_pm_ops, 72 73 }, 73 74 .probe = bmc150_magn_i2c_probe,
+1 -2
drivers/iio/magnetometer/bmc150_magn_spi.c
··· 10 10 #include <linux/module.h> 11 11 #include <linux/mod_devicetable.h> 12 12 #include <linux/spi/spi.h> 13 - #include <linux/acpi.h> 14 13 #include <linux/regmap.h> 15 14 16 15 #include "bmc150_magn.h" ··· 54 55 .remove = bmc150_magn_spi_remove, 55 56 .id_table = bmc150_magn_spi_id, 56 57 .driver = { 57 - .acpi_match_table = ACPI_PTR(bmc150_magn_acpi_match), 58 + .acpi_match_table = bmc150_magn_acpi_match, 58 59 .name = "bmc150_magn_spi", 59 60 }, 60 61 };