diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-11-16 19:27:11 +0000 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-12-06 17:19:53 +0000 |
commit | 9f4e9ffee97414d882889a943e550c53b5fa1d5c (patch) | |
tree | ead80f51cec9924c6ba61b28350e4b85c5068347 /drivers/iio/light | |
parent | 90ae7ed9bae5d7832adeba0dd574790fac65cbbf (diff) | |
download | linux-9f4e9ffee97414d882889a943e550c53b5fa1d5c.tar.gz linux-9f4e9ffee97414d882889a943e550c53b5fa1d5c.tar.bz2 linux-9f4e9ffee97414d882889a943e550c53b5fa1d5c.zip |
iio: light: pa1203001: Drop ACPI_PTR() protection.
The extra cost of always including the acpi_device_id table is trivial
vs the complexity of adding guards or __maybe_unused markings so
just stop using the ACPI_PTR() macro.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202311160851.FDA4CDVE-lkp@intel.com/
Link: https://lore.kernel.org/r/20231116192711.366441-1-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/light')
-rw-r--r-- | drivers/iio/light/pa12203001.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/light/pa12203001.c b/drivers/iio/light/pa12203001.c index ed241598aefb..636432c45651 100644 --- a/drivers/iio/light/pa12203001.c +++ b/drivers/iio/light/pa12203001.c @@ -472,7 +472,7 @@ static struct i2c_driver pa12203001_driver = { .driver = { .name = PA12203001_DRIVER_NAME, .pm = &pa12203001_pm_ops, - .acpi_match_table = ACPI_PTR(pa12203001_acpi_match), + .acpi_match_table = pa12203001_acpi_match, }, .probe = pa12203001_probe, .remove = pa12203001_remove, |