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: magnetometer: mmc35240: 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-20-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

+2 -2
+2 -2
drivers/iio/magnetometer/mmc35240.c
··· 10 10 */ 11 11 12 12 #include <linux/module.h> 13 + #include <linux/mod_devicetable.h> 13 14 #include <linux/init.h> 14 15 #include <linux/i2c.h> 15 16 #include <linux/delay.h> 16 17 #include <linux/regmap.h> 17 - #include <linux/acpi.h> 18 18 #include <linux/pm.h> 19 19 20 20 #include <linux/iio/iio.h> ··· 573 573 .name = MMC35240_DRV_NAME, 574 574 .of_match_table = mmc35240_of_match, 575 575 .pm = pm_sleep_ptr(&mmc35240_pm_ops), 576 - .acpi_match_table = ACPI_PTR(mmc35240_acpi_match), 576 + .acpi_match_table = mmc35240_acpi_match, 577 577 }, 578 578 .probe = mmc35240_probe, 579 579 .id_table = mmc35240_id,