* [PATCH] iio: adc: axp20x_adc: make axp717_maps const
@ 2025-06-28 16:23 David Lechner
2025-06-29 16:53 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: David Lechner @ 2025-06-28 16:23 UTC (permalink / raw)
To: Jonathan Cameron, Nuno Sá, Andy Shevchenko, Chen-Yu Tsai
Cc: linux-iio, linux-kernel, David Lechner
Add const qualifier to struct iio_map axp717_maps[]. This is read-only
data so it can be made const.
Signed-off-by: David Lechner <dlechner@baylibre.com>
---
drivers/iio/adc/axp20x_adc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/adc/axp20x_adc.c b/drivers/iio/adc/axp20x_adc.c
index 71584ffd36324800e23945df7984ac98ba88b793..bb290b5ee92d211f12bbb2a4b8f0dda87e09f4c5 100644
--- a/drivers/iio/adc/axp20x_adc.c
+++ b/drivers/iio/adc/axp20x_adc.c
@@ -173,7 +173,7 @@ static const struct iio_map axp22x_maps[] = {
{ }
};
-static struct iio_map axp717_maps[] = {
+static const struct iio_map axp717_maps[] = {
{
.consumer_dev_name = "axp20x-usb-power-supply",
.consumer_channel = "vbus_v",
---
base-commit: 14071b9cf2d751ff9bc8b5e43fa94fbf08aceea1
change-id: 20250628-iio-const-data-7-6e215b22f2c8
Best regards,
--
David Lechner <dlechner@baylibre.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] iio: adc: axp20x_adc: make axp717_maps const
2025-06-28 16:23 [PATCH] iio: adc: axp20x_adc: make axp717_maps const David Lechner
@ 2025-06-29 16:53 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2025-06-29 16:53 UTC (permalink / raw)
To: David Lechner
Cc: Nuno Sá, Andy Shevchenko, Chen-Yu Tsai, linux-iio, linux-kernel
On Sat, 28 Jun 2025 11:23:58 -0500
David Lechner <dlechner@baylibre.com> wrote:
> Add const qualifier to struct iio_map axp717_maps[]. This is read-only
> data so it can be made const.
>
> Signed-off-by: David Lechner <dlechner@baylibre.com>
Applied to the testing branch of iio.git. Plenty of time for
additional comments / tags etc.
Jonathan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-29 16:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-28 16:23 [PATCH] iio: adc: axp20x_adc: make axp717_maps const David Lechner
2025-06-29 16:53 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®