Skip to content

Commit 1ddcf8e

Browse files
committed
Fixed the lint code error
Signed-off-by: Josh-Tsai <josh_tsai@compal.com>
1 parent 7385bd7 commit 1ddcf8e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

zephyr/Kconfig.motionsense

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ config PLATFORM_EC_DEDICATED_ALS
200200
select HAS_TASK_ALS
201201
help
202202
Enable ALS task without motionsense.
203+
This config must defines the als_t als[] in project layer.
203204

204205
if PLATFORM_EC_DEDICATED_ALS
205206

zephyr/program/lotus/src/als.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ int cm32183_init(void)
5151
*/
5252
if (i2c_write16(I2C_PORT_ALS, CM32183_I2C_ADDR,
5353
CM32183_REG_CONFIGURE, CM32183_REG_CONFIGURE_CH_EN))
54-
msleep(10);
54+
k_msleep(10);
5555
else
5656
return EC_SUCCESS;
5757
}

zephyr/shim/include/shimmed_task_id.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ enum {
167167
(CROS_EC_TASK(CYPD, cypd_interrupt_handler_task, 0, \
168168
CONFIG_TASK_CYPD_STACK_SIZE, \
169169
EC_TASK_CYPD_PRIO)), \
170-
()) \
170+
()) \
171171
COND_CODE_1(HAS_TASK_ALS, \
172172
(CROS_EC_TASK(ALS, als_task, 0, \
173173
CONFIG_TASK_ALS_STACK_SIZE, \
174174
EC_TASK_ALS_PRIO)), \
175-
()) \
175+
()) \
176176
COND_CODE_1(HAS_TASK_TOUCHPAD, \
177177
(CROS_EC_TASK(TOUCHPAD, touchpad_task, 0, \
178178
CONFIG_TASK_TOUCHPAD_STACK_SIZE, \

0 commit comments

Comments
 (0)