diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-12-31 18:34:53 +0000 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-01-23 22:06:54 +0000 |
commit | 9b397c11e04adb86b8bbf2bd969ef6fad005f1ab (patch) | |
tree | 875728a56c28db07bcc3cdab65eae0e4265f5631 /drivers/iio/accel | |
parent | ab3764c77560a8cd1b2b22500494a7951f277522 (diff) | |
download | linux-stable-9b397c11e04adb86b8bbf2bd969ef6fad005f1ab.tar.gz linux-stable-9b397c11e04adb86b8bbf2bd969ef6fad005f1ab.tar.bz2 linux-stable-9b397c11e04adb86b8bbf2bd969ef6fad005f1ab.zip |
iio: accel: mma9551: 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.
Whilst here tidy up a trivial bit of unusual indentation.
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20231231183514.566609-4-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/accel')
-rw-r--r-- | drivers/iio/accel/mma9551.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/accel/mma9551.c b/drivers/iio/accel/mma9551.c index d823f2edc6d4..083c08f65baf 100644 --- a/drivers/iio/accel/mma9551.c +++ b/drivers/iio/accel/mma9551.c @@ -604,9 +604,9 @@ MODULE_DEVICE_TABLE(i2c, mma9551_id); static struct i2c_driver mma9551_driver = { .driver = { .name = MMA9551_DRV_NAME, - .acpi_match_table = ACPI_PTR(mma9551_acpi_match), + .acpi_match_table = mma9551_acpi_match, .pm = pm_ptr(&mma9551_pm_ops), - }, + }, .probe = mma9551_probe, .remove = mma9551_remove, .id_table = mma9551_id, |