Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -2
+2 -2
drivers/iio/accel/mma9551.c
··· 604 604 static struct i2c_driver mma9551_driver = { 605 605 .driver = { 606 606 .name = MMA9551_DRV_NAME, 607 - .acpi_match_table = ACPI_PTR(mma9551_acpi_match), 607 + .acpi_match_table = mma9551_acpi_match, 608 608 .pm = pm_ptr(&mma9551_pm_ops), 609 - }, 609 + }, 610 610 .probe = mma9551_probe, 611 611 .remove = mma9551_remove, 612 612 .id_table = mma9551_id,