summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIliyan Malchev <malchev@google.com>2009-08-20 16:47:17 -0700
committerIliyan Malchev <malchev@google.com>2009-08-20 16:47:17 -0700
commit61fee89f2d50cc01c34930cda8f65f70aa23acc4 (patch)
tree8f65a7879eaab33a47a2915f7608bb9477b2b1bb
parent2a8477c89915298be2b2a6297e45024a1e69c7ea (diff)
downloadlibhardware-61fee89f2d50cc01c34930cda8f65f70aa23acc4.tar.gz
libhardware: add a field for reporting light levels
Signed-off-by: Iliyan Malchev <malchev@google.com>
-rw-r--r--include/hardware/sensors.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hardware/sensors.h b/include/hardware/sensors.h
index a8e538da..3be07b31 100644
--- a/include/hardware/sensors.h
+++ b/include/hardware/sensors.h
@@ -219,6 +219,9 @@ typedef struct {
/* distance in centimeters */
float distance;
+
+ /* light in lux */
+ float light;
};
/* time is in nanosecond */