From: Jonathan Cameron Date: Sun, 31 Dec 2023 18:35:00 +0000 (+0000) Subject: iio: humidity: hts221: Drop ACPI_PTR() usage X-Git-Tag: v6.9-rc1~35^2~70^2~81 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3049e64036d71f4e248beee94de26d47e64f05e6;p=thirdparty%2Fkernel%2Flinux.git iio: humidity: hts221: 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. Reviewed-by: Andy Shevchenko Link: https://lore.kernel.org/r/20231231183514.566609-11-jic23@kernel.org Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/humidity/hts221_i2c.c b/drivers/iio/humidity/hts221_i2c.c index 30f2068ea1566..5cb263e0ef5ac 100644 --- a/drivers/iio/humidity/hts221_i2c.c +++ b/drivers/iio/humidity/hts221_i2c.c @@ -9,7 +9,7 @@ #include #include -#include +#include #include #include #include @@ -63,7 +63,7 @@ static struct i2c_driver hts221_driver = { .name = "hts221_i2c", .pm = pm_sleep_ptr(&hts221_pm_ops), .of_match_table = hts221_i2c_of_match, - .acpi_match_table = ACPI_PTR(hts221_acpi_match), + .acpi_match_table = hts221_acpi_match, }, .probe = hts221_i2c_probe, .id_table = hts221_i2c_id_table,