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

iio: light: us5182d: 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 from acpi.h to mod_devicetable.h which includes the
definition of struct acpi_device_id.

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

+2 -2
+2 -2
drivers/iio/light/us5182d.c
··· 9 9 10 10 #include <linux/kernel.h> 11 11 #include <linux/module.h> 12 - #include <linux/acpi.h> 12 + #include <linux/mod_devicetable.h> 13 13 #include <linux/delay.h> 14 14 #include <linux/i2c.h> 15 15 #include <linux/iio/events.h> ··· 972 972 .name = US5182D_DRV_NAME, 973 973 .pm = pm_ptr(&us5182d_pm_ops), 974 974 .of_match_table = us5182d_of_match, 975 - .acpi_match_table = ACPI_PTR(us5182d_acpi_match), 975 + .acpi_match_table = us5182d_acpi_match, 976 976 }, 977 977 .probe = us5182d_probe, 978 978 .remove = us5182d_remove,