iio: imu: fxos8700: Drop ACPI_PTR() usage
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 31 Dec 2023 18:35:01 +0000 (18:35 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 23 Jan 2024 22:06:55 +0000 (22:06 +0000)
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.

Drop unused acpi.h include.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202311231427.vEQAuxvI-lkp@intel.com/
Cc: Carlos Song <carlos.song@nxp.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20231231183514.566609-12-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/fxos8700_i2c.c
drivers/iio/imu/fxos8700_spi.c

index 2ace306d0f9ab81b5124d451b0f3f2257874f1a6..e99677ad96a2f9041b8399a83b28586357371122 100644 (file)
@@ -10,7 +10,6 @@
  *      1    |  0    |  0x1C
  *      1    |  1    |  0x1F
  */
-#include <linux/acpi.h>
 #include <linux/i2c.h>
 #include <linux/module.h>
 #include <linux/mod_devicetable.h>
@@ -57,7 +56,7 @@ MODULE_DEVICE_TABLE(of, fxos8700_of_match);
 static struct i2c_driver fxos8700_i2c_driver = {
        .driver = {
                .name                   = "fxos8700_i2c",
-               .acpi_match_table       = ACPI_PTR(fxos8700_acpi_match),
+               .acpi_match_table       = fxos8700_acpi_match,
                .of_match_table         = fxos8700_of_match,
        },
        .probe          = fxos8700_i2c_probe,
index 27e694cce173e05f2312c4b8b6ef6a0a1cc40d0a..6b0dc7a776b9eca3841066dae0e9ead6a0f68875 100644 (file)
@@ -2,7 +2,6 @@
 /*
  * FXOS8700 - NXP IMU, SPI bits
  */
-#include <linux/acpi.h>
 #include <linux/module.h>
 #include <linux/mod_devicetable.h>
 #include <linux/regmap.h>
@@ -46,7 +45,7 @@ static struct spi_driver fxos8700_spi_driver = {
        .probe          = fxos8700_spi_probe,
        .id_table       = fxos8700_spi_id,
        .driver = {
-               .acpi_match_table       = ACPI_PTR(fxos8700_acpi_match),
+               .acpi_match_table       = fxos8700_acpi_match,
                .of_match_table         = fxos8700_of_match,
                .name                   = "fxos8700_spi",
        },