iio: imu: fxos8700: 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. 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>
This commit is contained in:
parent
3049e64036
commit
37b1ea3065
@ -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,
|
||||
|
@ -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",
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user