diff options
Diffstat (limited to 'driver')
-rw-r--r-- | driver/accel_lis2ds.c | 3 | ||||
-rw-r--r-- | driver/accel_lis2dw12.c | 3 | ||||
-rw-r--r-- | driver/accelgyro_bmi160.c | 5 | ||||
-rw-r--r-- | driver/accelgyro_bmi260.c | 3 | ||||
-rw-r--r-- | driver/accelgyro_icm426xx.c | 2 | ||||
-rw-r--r-- | driver/accelgyro_lsm6dsm.c | 3 | ||||
-rw-r--r-- | driver/accelgyro_lsm6dso.c | 3 | ||||
-rw-r--r-- | driver/als_si114x.c | 7 | ||||
-rw-r--r-- | driver/als_tcs3400.c | 5 | ||||
-rw-r--r-- | driver/bc12/max14637.c | 2 | ||||
-rw-r--r-- | driver/bc12/pi3usb9281.c | 2 | ||||
-rw-r--r-- | driver/sync.c | 2 | ||||
-rw-r--r-- | driver/tcpm/anx74xx.c | 4 | ||||
-rw-r--r-- | driver/tcpm/fusb302.c | 4 | ||||
-rw-r--r-- | driver/tcpm/stub.c | 4 | ||||
-rw-r--r-- | driver/tcpm/tcpci.c | 4 | ||||
-rw-r--r-- | driver/touchpad_elan.c | 2 | ||||
-rw-r--r-- | driver/touchpad_st.c | 4 |
18 files changed, 26 insertions, 36 deletions
diff --git a/driver/accel_lis2ds.c b/driver/accel_lis2ds.c index 0b57f27f21..93272262ad 100644 --- a/driver/accel_lis2ds.c +++ b/driver/accel_lis2ds.c @@ -128,8 +128,7 @@ void lis2ds_interrupt(enum gpio_signal signal) if (IS_ENABLED(CONFIG_ACCEL_FIFO)) last_interrupt_timestamp = __hw_clock_source_read(); - task_set_event(TASK_ID_MOTIONSENSE, - CONFIG_ACCEL_LIS2DS_INT_EVENT, 0); + task_set_event(TASK_ID_MOTIONSENSE, CONFIG_ACCEL_LIS2DS_INT_EVENT); } /** diff --git a/driver/accel_lis2dw12.c b/driver/accel_lis2dw12.c index dbc3dcac03..270c2d0eed 100644 --- a/driver/accel_lis2dw12.c +++ b/driver/accel_lis2dw12.c @@ -200,8 +200,7 @@ static void lis2dw12_handle_interrupt_for_fifo(uint32_t ts) time_after(ts, last_interrupt_timestamp)) last_interrupt_timestamp = ts; - task_set_event(TASK_ID_MOTIONSENSE, - CONFIG_ACCEL_LIS2DW12_INT_EVENT, 0); + task_set_event(TASK_ID_MOTIONSENSE, CONFIG_ACCEL_LIS2DW12_INT_EVENT); } /** diff --git a/driver/accelgyro_bmi160.c b/driver/accelgyro_bmi160.c index bd32fe6d59..70059dc1d7 100644 --- a/driver/accelgyro_bmi160.c +++ b/driver/accelgyro_bmi160.c @@ -513,8 +513,7 @@ void bmi160_interrupt(enum gpio_signal signal) if (IS_ENABLED(CONFIG_ACCEL_FIFO)) last_interrupt_timestamp = __hw_clock_source_read(); - task_set_event(TASK_ID_MOTIONSENSE, - CONFIG_ACCELGYRO_BMI160_INT_EVENT, 0); + task_set_event(TASK_ID_MOTIONSENSE, CONFIG_ACCELGYRO_BMI160_INT_EVENT); } /** @@ -700,7 +699,7 @@ static int init(struct motion_sensor_t *s) * BMI160 was in management mode. */ task_set_event(TASK_ID_MOTIONSENSE, - CONFIG_ACCELGYRO_BMI160_INT_EVENT, 0); + CONFIG_ACCELGYRO_BMI160_INT_EVENT); } #endif diff --git a/driver/accelgyro_bmi260.c b/driver/accelgyro_bmi260.c index 1be15b21c7..f0c9f3e9db 100644 --- a/driver/accelgyro_bmi260.c +++ b/driver/accelgyro_bmi260.c @@ -270,8 +270,7 @@ void bmi260_interrupt(enum gpio_signal signal) if (IS_ENABLED(CONFIG_ACCEL_FIFO)) last_interrupt_timestamp = __hw_clock_source_read(); - task_set_event(TASK_ID_MOTIONSENSE, - CONFIG_ACCELGYRO_BMI260_INT_EVENT, 0); + task_set_event(TASK_ID_MOTIONSENSE, CONFIG_ACCELGYRO_BMI260_INT_EVENT); } static int config_interrupt(const struct motion_sensor_t *s) diff --git a/driver/accelgyro_icm426xx.c b/driver/accelgyro_icm426xx.c index 0bea3de575..5c2a0aaf17 100644 --- a/driver/accelgyro_icm426xx.c +++ b/driver/accelgyro_icm426xx.c @@ -241,7 +241,7 @@ void icm426xx_interrupt(enum gpio_signal signal) last_interrupt_timestamp = __hw_clock_source_read(); task_set_event(TASK_ID_MOTIONSENSE, - CONFIG_ACCELGYRO_ICM426XX_INT_EVENT, 0); + CONFIG_ACCELGYRO_ICM426XX_INT_EVENT); } /** diff --git a/driver/accelgyro_lsm6dsm.c b/driver/accelgyro_lsm6dsm.c index 1a1308c3f5..457c664095 100644 --- a/driver/accelgyro_lsm6dsm.c +++ b/driver/accelgyro_lsm6dsm.c @@ -450,8 +450,7 @@ static void handle_interrupt_for_fifo(uint32_t ts) if (IS_ENABLED(CONFIG_ACCEL_FIFO) && time_after(ts, last_interrupt_timestamp)) last_interrupt_timestamp = ts; - task_set_event(TASK_ID_MOTIONSENSE, - CONFIG_ACCEL_LSM6DSM_INT_EVENT, 0); + task_set_event(TASK_ID_MOTIONSENSE, CONFIG_ACCEL_LSM6DSM_INT_EVENT); } /** diff --git a/driver/accelgyro_lsm6dso.c b/driver/accelgyro_lsm6dso.c index 64f7cad7c9..12636d1782 100644 --- a/driver/accelgyro_lsm6dso.c +++ b/driver/accelgyro_lsm6dso.c @@ -226,8 +226,7 @@ void lsm6dso_interrupt(enum gpio_signal signal) if (IS_ENABLED(CONFIG_ACCEL_FIFO)) last_interrupt_timestamp = __hw_clock_source_read(); - task_set_event(TASK_ID_MOTIONSENSE, - CONFIG_ACCEL_LSM6DSO_INT_EVENT, 0); + task_set_event(TASK_ID_MOTIONSENSE, CONFIG_ACCEL_LSM6DSO_INT_EVENT); } /** diff --git a/driver/als_si114x.c b/driver/als_si114x.c index 98b6c02dd5..be6bad9c33 100644 --- a/driver/als_si114x.c +++ b/driver/als_si114x.c @@ -167,16 +167,13 @@ static int si114x_read_results(struct motion_sensor_t *s, int nb) void si114x_interrupt(enum gpio_signal signal) { - task_set_event(TASK_ID_MOTIONSENSE, - CONFIG_ALS_SI114X_INT_EVENT, 0); + task_set_event(TASK_ID_MOTIONSENSE, CONFIG_ALS_SI114X_INT_EVENT); } #ifdef CONFIG_ALS_SI114X_POLLING static void si114x_read_deferred(void) { - task_set_event(TASK_ID_MOTIONSENSE, - CONFIG_ALS_SI114X_INT_EVENT, 0); - + task_set_event(TASK_ID_MOTIONSENSE, CONFIG_ALS_SI114X_INT_EVENT); } DECLARE_DEFERRED(si114x_read_deferred); #endif diff --git a/driver/als_tcs3400.c b/driver/als_tcs3400.c index b047cf5057..2639e9c7bd 100644 --- a/driver/als_tcs3400.c +++ b/driver/als_tcs3400.c @@ -79,7 +79,7 @@ static inline int tcs3400_i2c_write8(const struct motion_sensor_t *s, static void tcs3400_read_deferred(void) { - task_set_event(TASK_ID_MOTIONSENSE, CONFIG_ALS_TCS3400_INT_EVENT, 0); + task_set_event(TASK_ID_MOTIONSENSE, CONFIG_ALS_TCS3400_INT_EVENT); } DECLARE_DEFERRED(tcs3400_read_deferred); @@ -491,8 +491,7 @@ void tcs3400_interrupt(enum gpio_signal signal) if (IS_ENABLED(CONFIG_ACCEL_FIFO)) last_interrupt_timestamp = __hw_clock_source_read(); - task_set_event(TASK_ID_MOTIONSENSE, - CONFIG_ALS_TCS3400_INT_EVENT, 0); + task_set_event(TASK_ID_MOTIONSENSE, CONFIG_ALS_TCS3400_INT_EVENT); } /* diff --git a/driver/bc12/max14637.c b/driver/bc12/max14637.c index c7101b00ef..193e70ecb6 100644 --- a/driver/bc12/max14637.c +++ b/driver/bc12/max14637.c @@ -208,7 +208,7 @@ static void bc12_chipset_startup(void) */ for (port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; port++) task_set_event(USB_CHG_PORT_TO_TASK_ID(port), - USB_CHG_EVENT_VBUS, 0); + USB_CHG_EVENT_VBUS); } DECLARE_HOOK(HOOK_CHIPSET_STARTUP, bc12_chipset_startup, HOOK_PRIO_DEFAULT); DECLARE_HOOK(HOOK_CHIPSET_RESUME, bc12_chipset_startup, HOOK_PRIO_DEFAULT); diff --git a/driver/bc12/pi3usb9281.c b/driver/bc12/pi3usb9281.c index 56ad5bf602..9fc32e942b 100644 --- a/driver/bc12/pi3usb9281.c +++ b/driver/bc12/pi3usb9281.c @@ -287,7 +287,7 @@ static void pi3usb9281_set_switches(int port, enum usb_switch setting) if (setting != USB_SWITCH_RESTORE) usb_switch_state[port] = setting; CPRINTS("USB MUX %d", usb_switch_state[port]); - task_set_event(TASK_ID_USB_CHG_P0 + port, USB_CHG_EVENT_MUX, 0); + task_set_event(TASK_ID_USB_CHG_P0 + port, USB_CHG_EVENT_MUX); } static int pc3usb9281_read_interrupt(int port) diff --git a/driver/sync.c b/driver/sync.c index 2d412355fb..0a93ab8f9f 100644 --- a/driver/sync.c +++ b/driver/sync.c @@ -76,7 +76,7 @@ void sync_interrupt(enum gpio_signal signal) next_event.counter++; queue_add_unit(&sync_event_queue, &next_event); - task_set_event(TASK_ID_MOTIONSENSE, CONFIG_SYNC_INT_EVENT, 0); + task_set_event(TASK_ID_MOTIONSENSE, CONFIG_SYNC_INT_EVENT); } /* Bottom half of the irq handler */ diff --git a/driver/tcpm/anx74xx.c b/driver/tcpm/anx74xx.c index 4ca30f8eca..cdf145cc37 100644 --- a/driver/tcpm/anx74xx.c +++ b/driver/tcpm/anx74xx.c @@ -1011,7 +1011,7 @@ void anx74xx_tcpc_alert(int port) if (reg & ANX74XX_REG_IRQ_CC_STATUS_INT) /* CC status changed, wake task */ - task_set_event(PD_PORT_TO_TASK_ID(port), PD_EVENT_CC, 0); + task_set_event(PD_PORT_TO_TASK_ID(port), PD_EVENT_CC); /* Read and clear extended alert register 1 */ reg = 0; @@ -1043,7 +1043,7 @@ void anx74xx_tcpc_alert(int port) if (reg & ANX74XX_REG_EXT_HARD_RST) { /* hard reset received */ task_set_event(PD_PORT_TO_TASK_ID(port), - PD_EVENT_RX_HARD_RESET, 0); + PD_EVENT_RX_HARD_RESET); } } diff --git a/driver/tcpm/fusb302.c b/driver/tcpm/fusb302.c index 18ad09522f..17f71c615b 100644 --- a/driver/tcpm/fusb302.c +++ b/driver/tcpm/fusb302.c @@ -975,7 +975,7 @@ void fusb302_tcpc_alert(int port) if (interrupt & TCPC_REG_INTERRUPT_BC_LVL) { /* CC Status change */ - task_set_event(PD_PORT_TO_TASK_ID(port), PD_EVENT_CC, 0); + task_set_event(PD_PORT_TO_TASK_ID(port), PD_EVENT_CC); } if (interrupt & TCPC_REG_INTERRUPT_COLLISION) { @@ -1024,7 +1024,7 @@ void fusb302_tcpc_alert(int port) /* bring FUSB302 out of reset */ fusb302_pd_reset(port); task_set_event(PD_PORT_TO_TASK_ID(port), - PD_EVENT_RX_HARD_RESET, 0); + PD_EVENT_RX_HARD_RESET); } if (interruptb & TCPC_REG_INTERRUPTB_GCRCSENT) { diff --git a/driver/tcpm/stub.c b/driver/tcpm/stub.c index 75a9c9ced6..c407e099fb 100644 --- a/driver/tcpm/stub.c +++ b/driver/tcpm/stub.c @@ -136,7 +136,7 @@ void tcpc_alert(int port) if (status & TCPC_REG_ALERT_CC_STATUS) { /* CC status changed, wake task */ - task_set_event(PD_PORT_TO_TASK_ID(port), PD_EVENT_CC, 0); + task_set_event(PD_PORT_TO_TASK_ID(port), PD_EVENT_CC); } if (status & TCPC_REG_ALERT_RX_STATUS) { /* @@ -148,7 +148,7 @@ void tcpc_alert(int port) if (status & TCPC_REG_ALERT_RX_HARD_RST) { /* hard reset received */ task_set_event(PD_PORT_TO_TASK_ID(port), - PD_EVENT_RX_HARD_RESET, 0); + PD_EVENT_RX_HARD_RESET); } if (status & TCPC_REG_ALERT_TX_COMPLETE) { /* transmit complete */ diff --git a/driver/tcpm/tcpci.c b/driver/tcpm/tcpci.c index 5fb54b1beb..c667f4b896 100644 --- a/driver/tcpm/tcpci.c +++ b/driver/tcpm/tcpci.c @@ -891,7 +891,7 @@ int tcpm_enqueue_message(const int port) atomic_add(&q->head, 1); /* Wake PD task up so it can process incoming RX messages */ - task_set_event(PD_PORT_TO_TASK_ID(port), TASK_EVENT_WAKE, 0); + task_set_event(PD_PORT_TO_TASK_ID(port), TASK_EVENT_WAKE); return EC_SUCCESS; } @@ -1262,7 +1262,7 @@ void tcpci_tcpc_alert(int port) * the next I2C transaction to the TCPC will cause it to wake again. */ if (pd_event) - task_set_event(PD_PORT_TO_TASK_ID(port), pd_event, 0); + task_set_event(PD_PORT_TO_TASK_ID(port), pd_event); } /* diff --git a/driver/touchpad_elan.c b/driver/touchpad_elan.c index 0882f03874..d2e28d53a6 100644 --- a/driver/touchpad_elan.c +++ b/driver/touchpad_elan.c @@ -833,7 +833,7 @@ void touchpad_task(void *u) #if defined(CONFIG_USB_SUSPEND) || defined(CONFIG_TABLET_MODE) static void touchpad_power_change(void) { - task_set_event(TASK_ID_TOUCHPAD, TASK_EVENT_POWER, 0); + task_set_event(TASK_ID_TOUCHPAD, TASK_EVENT_POWER); } #endif #ifdef CONFIG_USB_SUSPEND diff --git a/driver/touchpad_st.c b/driver/touchpad_st.c index a77ee2590f..56633bad16 100644 --- a/driver/touchpad_st.c +++ b/driver/touchpad_st.c @@ -1223,7 +1223,7 @@ int touchpad_update_write(int offset, int size, const uint8_t *data) CPRINTS("%s: End update, wait for reset.", __func__); ret = st_tp_panel_init(full_init_required); - task_set_event(TASK_ID_TOUCHPAD, TASK_EVENT_TP_UPDATED, 0); + task_set_event(TASK_ID_TOUCHPAD, TASK_EVENT_TP_UPDATED); return ret; } @@ -1509,7 +1509,7 @@ void touchpad_task(void *u) #if defined(CONFIG_USB_SUSPEND) || defined(CONFIG_TABLET_MODE) static void touchpad_power_change(void) { - task_set_event(TASK_ID_TOUCHPAD, TASK_EVENT_POWER, 0); + task_set_event(TASK_ID_TOUCHPAD, TASK_EVENT_POWER); } #endif #ifdef CONFIG_USB_SUSPEND |