]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: adc: mp2629_adc: make mp2629_channels const
authorDavid Lechner <dlechner@baylibre.com>
Sat, 28 Jun 2025 16:31:02 +0000 (11:31 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 6 Jul 2025 09:37:52 +0000 (10:37 +0100)
commitbf9b1ffe157b3a1646bf774494f766ef618a1047
treea2e61dfef2352f375abe99ceab5704ea6c735d32
parentfc0f5322a3710ea68c88e3c23d940eca6d6344e6
iio: adc: mp2629_adc: make mp2629_channels const

Add const qualifier to struct iio_chan_spec mp2629_channels[]. 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-8-v1-1-32ce79494d4a@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/mp2629_adc.c