]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iio: adc: axp20x_adc: make axp717_maps const
authorDavid Lechner <dlechner@baylibre.com>
Sat, 28 Jun 2025 16:23:58 +0000 (11:23 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 6 Jul 2025 09:37:52 +0000 (10:37 +0100)
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>
Link: https://patch.msgid.link/20250628-iio-const-data-7-v1-1-10008d0a4c2f@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/axp20x_adc.c

index 71584ffd36324800e23945df7984ac98ba88b793..bb290b5ee92d211f12bbb2a4b8f0dda87e09f4c5 100644 (file)
@@ -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",