Skip to content

Commit 7d7c205

Browse files
dlechjic23
authored andcommitted
iio: chemical: atlas-ezo-sensor: make atlas_ezo_devices const
Add const qualifier to struct atlas_ezo_device atlas_ezo_devices[]. 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-13-v1-1-2a7fd592a07c@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent d2eb85c commit 7d7c205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/chemical/atlas-ezo-sensor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static const struct iio_chan_spec atlas_hum_ezo_channels[] = {
8282
},
8383
};
8484

85-
static struct atlas_ezo_device atlas_ezo_devices[] = {
85+
static const struct atlas_ezo_device atlas_ezo_devices[] = {
8686
[ATLAS_CO2_EZO] = {
8787
.channels = atlas_co2_ezo_channels,
8888
.num_channels = 1,

0 commit comments

Comments
 (0)