Skip to content

Commit 7ffcdbf

Browse files
dlechjic23
authored andcommitted
iio: adc: axp20x_adc: make axp717_maps const
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>
1 parent 8a7d1c7 commit 7ffcdbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/adc/axp20x_adc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ static const struct iio_map axp22x_maps[] = {
173173
{ }
174174
};
175175

176-
static struct iio_map axp717_maps[] = {
176+
static const struct iio_map axp717_maps[] = {
177177
{
178178
.consumer_dev_name = "axp20x-usb-power-supply",
179179
.consumer_channel = "vbus_v",

0 commit comments

Comments
 (0)