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

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>

+1 -1
+1 -1
drivers/iio/light/pa12203001.c
··· 472 472 .driver = { 473 473 .name = PA12203001_DRIVER_NAME, 474 474 .pm = &pa12203001_pm_ops, 475 - .acpi_match_table = ACPI_PTR(pa12203001_acpi_match), 475 + .acpi_match_table = pa12203001_acpi_match, 476 476 }, 477 477 .probe = pa12203001_probe, 478 478 .remove = pa12203001_remove,