projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bff02f
)
staging:iio: Add an iio channel type string to support proximity sensors.
author
Bryan Freed
<bfreed@chromium.org>
Thu, 7 Jul 2011 19:01:55 +0000
(12:01 -0700)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 8 Jul 2011 21:11:49 +0000
(14:11 -0700)
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 <bfreed@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/industrialio-core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/iio/industrialio-core.c
b/drivers/staging/iio/industrialio-core.c
index 52a02af0f827373744a2e8b09e99f63a2cee5eca..19819e7578c6175f51a9c8b3b4793cbb4f0ab1b9 100644
(file)
--- 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",