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

iio: accel: mxc4005: 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>
Closes: https://lore.kernel.org/oe-kbuild-all/202311181952.1usxCcup-lkp@intel.com/
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20231231183514.566609-6-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

+2 -2
+2 -2
drivers/iio/accel/mxc4005.c
··· 8 8 #include <linux/module.h> 9 9 #include <linux/i2c.h> 10 10 #include <linux/iio/iio.h> 11 - #include <linux/acpi.h> 11 + #include <linux/mod_devicetable.h> 12 12 #include <linux/regmap.h> 13 13 #include <linux/iio/sysfs.h> 14 14 #include <linux/iio/trigger.h> ··· 493 493 static struct i2c_driver mxc4005_driver = { 494 494 .driver = { 495 495 .name = MXC4005_DRV_NAME, 496 - .acpi_match_table = ACPI_PTR(mxc4005_acpi_match), 496 + .acpi_match_table = mxc4005_acpi_match, 497 497 .of_match_table = mxc4005_of_match, 498 498 }, 499 499 .probe = mxc4005_probe,