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: potentiometer: max5487: 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>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20231231183514.566609-21-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

+2 -2
+2 -2
drivers/iio/potentiometer/max5487.c
··· 5 5 * Copyright (C) 2016 Cristina-Gabriela Moraru <cristina.moraru09@gmail.com> 6 6 */ 7 7 #include <linux/module.h> 8 + #include <linux/mod_devicetable.h> 8 9 #include <linux/spi/spi.h> 9 - #include <linux/acpi.h> 10 10 11 11 #include <linux/iio/sysfs.h> 12 12 #include <linux/iio/iio.h> ··· 144 144 static struct spi_driver max5487_driver = { 145 145 .driver = { 146 146 .name = "max5487", 147 - .acpi_match_table = ACPI_PTR(max5487_acpi_match), 147 + .acpi_match_table = max5487_acpi_match, 148 148 }, 149 149 .id_table = max5487_id, 150 150 .probe = max5487_spi_probe,