Skip to content

Commit

Permalink
iio: core: add missing IIO_MOD_H2/ETHANOL string identifiers
Browse files Browse the repository at this point in the history
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 <matt.ranostay@konsulko.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
  • Loading branch information
Matt Ranostay authored and Jonathan Cameron committed Jun 14, 2020
1 parent 0187294 commit 25f02d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/iio/industrialio-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ static const char * const iio_modifier_names[] = {
[IIO_MOD_PM2P5] = "pm2p5",
[IIO_MOD_PM4] = "pm4",
[IIO_MOD_PM10] = "pm10",
[IIO_MOD_ETHANOL] = "ethanol",
[IIO_MOD_H2] = "h2",
};

/* relies on pairs of these shared then separate */
Expand Down

0 comments on commit 25f02d3

Please sign in to comment.