iio: Add support for humidity sensors

There are already humidity sensors in the hwmon subsystem,
so we use their unit (milli percent) here as well.

Signed-off-by: Harald Geyer <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
This commit is contained in:
Harald Geyer 2013-12-01 15:08:00 +00:00 • committed by Jonathan Cameron
commit ac216aa290
3 changed files with 15 additions and 0 deletions

View file

@ -69,6 +69,7 @@ static const char * const iio_chan_type_name_spec[] = {
[IIO_ALTVOLTAGE] = "altvoltage",
[IIO_CCT] = "cct",
[IIO_PRESSURE] = "pressure",
[IIO_HUMIDITYRELATIVE] = "humidityrelative",
};
static const char * const iio_modifier_names[] = {