From: Bryan Freed Date: Thu, 7 Jul 2011 19:01:55 +0000 (-0700) Subject: staging:iio: Add an iio channel type string to support proximity sensors. X-Git-Tag: firefly_0821_release~3680^2~4924^2~40 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f09f2c8142d275b0d9321d2ea93c8bd0d8dc32ec;p=firefly-linux-kernel-4.4.55.git staging:iio: Add an iio channel type string to support proximity sensors. Add "proximity" to the iio_chan_type_name_spec_shared string list to support proximity sensors. Now this list fully matches the declared iio_chan_type enums. Signed-off-by: Bryan Freed Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/industrialio-core.c b/drivers/staging/iio/industrialio-core.c index 52a02af0f827..19819e7578c6 100644 --- a/drivers/staging/iio/industrialio-core.c +++ b/drivers/staging/iio/industrialio-core.c @@ -54,6 +54,7 @@ static const char * const iio_chan_type_name_spec_shared[] = { [IIO_MAGN] = "magn", [IIO_LIGHT] = "illuminance", [IIO_INTENSITY] = "intensity", + [IIO_PROXIMITY] = "proximity", [IIO_TEMP] = "temp", [IIO_INCLI] = "incli", [IIO_ROT] = "rot",