From 2a16019d548cd95776a7c60485e9cf775d8e115f Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Wed, 9 Sep 2015 14:58:52 -0700 Subject: opt3001: Change resume hook priority If the power rail to the ambient light sensor is only enabled at HOOK_CHIPSET_RESUME (as on glados) then the ALS init should not attempt to execute until after that happens. BUG=chrome-os-partner:43493 BRANCH=none TEST=enable ALS on glados and successfully build and use it Change-Id: I4e8841bdf6d3970a30f58431aca771c87c7e15ba Signed-off-by: Duncan Laurie Reviewed-on: https://chromium-review.googlesource.com/298157 Reviewed-by: Alec Berg --- driver/als_opt3001.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'driver') diff --git a/driver/als_opt3001.c b/driver/als_opt3001.c index c2c4cc2592..712b70a00d 100644 --- a/driver/als_opt3001.c +++ b/driver/als_opt3001.c @@ -72,7 +72,7 @@ static void opt3001_init(void) if (ret) CPRINTF("ALS configure failed: ret=%d\n", ret); } -DECLARE_HOOK(HOOK_CHIPSET_RESUME, opt3001_init, HOOK_PRIO_DEFAULT); +DECLARE_HOOK(HOOK_CHIPSET_RESUME, opt3001_init, HOOK_PRIO_DEFAULT + 1); /** * Read OPT3001 light sensor data. -- cgit v1.2.1