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

iio: accel: mxc6255: 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.

Switch include to mod_devicetable.h as that contains the only
ACPI specific definitions needed in this driver.

Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20231231183514.566609-7-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

+2 -2
+2 -2
drivers/iio/accel/mxc6255.c
··· 12 12 #include <linux/init.h> 13 13 #include <linux/iio/iio.h> 14 14 #include <linux/delay.h> 15 - #include <linux/acpi.h> 15 + #include <linux/mod_devicetable.h> 16 16 #include <linux/regmap.h> 17 17 #include <linux/iio/sysfs.h> 18 18 ··· 181 181 static struct i2c_driver mxc6255_driver = { 182 182 .driver = { 183 183 .name = MXC6255_DRV_NAME, 184 - .acpi_match_table = ACPI_PTR(mxc6255_acpi_match), 184 + .acpi_match_table = mxc6255_acpi_match, 185 185 }, 186 186 .probe = mxc6255_probe, 187 187 .id_table = mxc6255_id,