* [PATCH] iio: light: pa1203001: Drop ACPI_PTR() protection.
@ 2023-11-16 19:27 Jonathan Cameron
2023-12-04 17:10 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Cameron @ 2023-11-16 19:27 UTC (permalink / raw)
To: linux-iio; +Cc: Jonathan Cameron, kernel test robot
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
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/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
---
drivers/iio/light/pa12203001.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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,
--
2.42.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iio: light: pa1203001: Drop ACPI_PTR() protection.
2023-11-16 19:27 [PATCH] iio: light: pa1203001: Drop ACPI_PTR() protection Jonathan Cameron
@ 2023-12-04 17:10 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2023-12-04 17:10 UTC (permalink / raw)
To: linux-iio; +Cc: Jonathan Cameron, kernel test robot
On Thu, 16 Nov 2023 19:27:11 +0000
Jonathan Cameron <jic23@kernel.org> wrote:
> From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
>
> 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/
> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Meh. Guess not that exciting to review :)
Applied anyway, so hopefully I haven't shot myself in the foot.
Jonathan
> ---
> drivers/iio/light/pa12203001.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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,
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-12-04 17:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-16 19:27 [PATCH] iio: light: pa1203001: Drop ACPI_PTR() protection Jonathan Cameron
2023-12-04 17:10 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).