Commit 095f3ed5 authored by Jonathan Cameron's avatar Jonathan Cameron

iio: accel: stk8ba50: 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: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20231231183514.566609-8-jic23@kernel.orgSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 39d76808
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
* STK8BA50 7-bit I2C address: 0x18. * STK8BA50 7-bit I2C address: 0x18.
*/ */
#include <linux/acpi.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/iio/buffer.h> #include <linux/iio/buffer.h>
#include <linux/iio/iio.h> #include <linux/iio/iio.h>
#include <linux/iio/sysfs.h> #include <linux/iio/sysfs.h>
...@@ -541,7 +541,7 @@ static struct i2c_driver stk8ba50_driver = { ...@@ -541,7 +541,7 @@ static struct i2c_driver stk8ba50_driver = {
.driver = { .driver = {
.name = "stk8ba50", .name = "stk8ba50",
.pm = pm_sleep_ptr(&stk8ba50_pm_ops), .pm = pm_sleep_ptr(&stk8ba50_pm_ops),
.acpi_match_table = ACPI_PTR(stk8ba50_acpi_id), .acpi_match_table = stk8ba50_acpi_id,
}, },
.probe = stk8ba50_probe, .probe = stk8ba50_probe,
.remove = stk8ba50_remove, .remove = stk8ba50_remove,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment