Skip to content

Commit 25f02d3

Browse files
mranostayjic23
authored andcommitted
iio: core: add missing IIO_MOD_H2/ETHANOL string identifiers
Add missing strings to iio_modifier_names[] for proper modification of channels. Fixes: b170f7d (iio: Add modifiers for ethanol and H2 gases) Signed-off-by: Matt Ranostay <[email protected]> Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 0187294 commit 25f02d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/iio/industrialio-core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ static const char * const iio_modifier_names[] = {
130130
[IIO_MOD_PM2P5] = "pm2p5",
131131
[IIO_MOD_PM4] = "pm4",
132132
[IIO_MOD_PM10] = "pm10",
133+
[IIO_MOD_ETHANOL] = "ethanol",
134+
[IIO_MOD_H2] = "h2",
133135
};
134136

135137
/* relies on pairs of these shared then separate */

0 commit comments

Comments
 (0)