diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2015-09-23 12:30:14 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-10-02 12:55:51 -0700 |
commit | 229094b2455e093c95d07251a0021f3b637e813c (patch) | |
tree | 9f9000c571d4c4dca79737902d14fe4a6a84643f /board/samus | |
parent | 2aebfda07f3fe4d3ee058022f088283b35f4f976 (diff) | |
download | chrome-ec-229094b2455e093c95d07251a0021f3b637e813c.tar.gz |
ALS: Disable the ALS task if all the ALS inits fail
BUG=none
TEST=Manually tested on Kunimitsu & Strago.
Removed the ALS sensor from DUT, using "taskinfo" console command
observed that the ALS task is not running.
BRANCH=none
Change-Id: I96cb720bd8d70033d433cdc2cd9cea9b56a3b389
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/301753
Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/samus')
-rw-r--r-- | board/samus/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/samus/board.c b/board/samus/board.c index 4d5a2e9132..83b9b58309 100644 --- a/board/samus/board.c +++ b/board/samus/board.c @@ -170,7 +170,7 @@ BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT); /* ALS instances. Must be in same order as enum als_id. */ struct als_t als[] = { - {"ISL", isl29035_read_lux, 5}, + {"ISL", isl29035_init, isl29035_read_lux, 5}, }; BUILD_ASSERT(ARRAY_SIZE(als) == ALS_COUNT); |