From 0c7b7f222c59726edca80b1a01f8f217cc5cfcf7 Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Tue, 3 Jan 2017 14:33:04 -0800 Subject: driver: als: Add error code UNCHANGED This error code is used to indicates the data has not changed. Motion sense task will therefore not add any entry in the sensor FIFO. BUG=chrome-os-partner:59423 TEST=make -j buildall BRANCH=reef Change-Id: I58b9be5675d8949bd682d8c89dadea1dfff9bf2e Signed-off-by: Gwendal Grignou Reviewed-on: https://chromium-review.googlesource.com/424856 Reviewed-by: Randall Spangler --- driver/als_si114x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'driver') diff --git a/driver/als_si114x.c b/driver/als_si114x.c index c4e31ffd76..eda02b5c15 100644 --- a/driver/als_si114x.c +++ b/driver/als_si114x.c @@ -141,7 +141,7 @@ static int si114x_read_results(struct motion_sensor_t *s, int nb) break; } if (i == nb) - return EC_SUCCESS; + return EC_ERROR_UNCHANGED; #ifdef CONFIG_ACCEL_FIFO vector.flags = 0; -- cgit v1.2.1