summaryrefslogtreecommitdiff
path: root/include/motion_sense.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/motion_sense.h')
-rw-r--r--include/motion_sense.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/motion_sense.h b/include/motion_sense.h
index 86d3e87ab8..ed24f232fd 100644
--- a/include/motion_sense.h
+++ b/include/motion_sense.h
@@ -185,4 +185,8 @@ void motion_sense_fifo_add_unit(struct ec_response_motion_sensor_data *data,
#else
#define ALL_MOTION_SENSORS motion_sensor_count
#endif
+
+#ifdef CONFIG_ALS_LIGHTBAR_DIMMING
+#define MOTION_SENSE_LUX motion_sensors[CONFIG_ALS_LIGHTBAR_DIMMING].raw_xyz[0]
+#endif
#endif /* __CROS_EC_MOTION_SENSE_H */