diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2015-09-08 11:38:47 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-09-19 15:18:08 -0700 |
commit | 1ce66908fb6f1a34cdf9a9775d9c832e83dc0d0c (patch) | |
tree | 5e3f71761af6b6c5c100aa8866324b21d0007b24 | |
parent | 33046e7d51af5d521235c79dcddc3308c71189db (diff) | |
download | chrome-ec-1ce66908fb6f1a34cdf9a9775d9c832e83dc0d0c.tar.gz |
driver: si114x: fix typo
If/When si1142/si1143 are used, we would upload 2/3 IR LED data.
BRANCH=smaug
BUG=None
TEST=compile, data still valid for si1141.
Change-Id: I39cd15d3c791ed514e4e122ddab3d3571edc43f9
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/298687
Reviewed-by: Alec Berg <alecaberg@chromium.org>
-rw-r--r-- | driver/als_si114x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/als_si114x.c b/driver/als_si114x.c index 944712f655..fb927e9367 100644 --- a/driver/als_si114x.c +++ b/driver/als_si114x.c @@ -128,7 +128,7 @@ static int si114x_read_results(struct motion_sensor_t *s, int nb) for (i = nb; i < 3; i++) vector.data[i] = 0; vector.sensor_num = s - motion_sensors; - motion_sense_fifo_add_unit(&vector, s, 1); + motion_sense_fifo_add_unit(&vector, s, nb); #else /* We need to copy raw_xyz into xyz with mutex */ #endif |