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

iio: light: jsa1212: 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.

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

+2 -2
+2 -2
drivers/iio/light/jsa1212.c
··· 12 12 #include <linux/kernel.h> 13 13 #include <linux/slab.h> 14 14 #include <linux/module.h> 15 + #include <linux/mod_devicetable.h> 15 16 #include <linux/delay.h> 16 17 #include <linux/i2c.h> 17 18 #include <linux/mutex.h> 18 - #include <linux/acpi.h> 19 19 #include <linux/regmap.h> 20 20 #include <linux/iio/iio.h> 21 21 #include <linux/iio/sysfs.h> ··· 438 438 .driver = { 439 439 .name = JSA1212_DRIVER_NAME, 440 440 .pm = pm_sleep_ptr(&jsa1212_pm_ops), 441 - .acpi_match_table = ACPI_PTR(jsa1212_acpi_match), 441 + .acpi_match_table = jsa1212_acpi_match, 442 442 }, 443 443 .probe = jsa1212_probe, 444 444 .remove = jsa1212_remove,