From e821309da6b00610f4aa9314489fcc685357d218 Mon Sep 17 00:00:00 2001 From: Kan-Ru Chen Date: Sat, 10 Feb 2024 08:11:59 +0900 Subject: [PATCH] feat: update to Zephyr 3.5 --- config/zephyr/kscan/kscan_hhkb_pro2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/zephyr/kscan/kscan_hhkb_pro2.c b/config/zephyr/kscan/kscan_hhkb_pro2.c index 9cbe527..a6bf2fb 100644 --- a/config/zephyr/kscan/kscan_hhkb_pro2.c +++ b/config/zephyr/kscan/kscan_hhkb_pro2.c @@ -75,7 +75,8 @@ static int kscan_hhkb_pro2_disable(const struct device *dev) static void kscan_hhkb_pro2_work_handler(struct k_work *work) { - struct kscan_hhkb_pro2_data *data = CONTAINER_OF(work, struct kscan_hhkb_pro2_data, poll); + struct k_work_delayable *d_work = k_work_delayable_from_work(work); + struct kscan_hhkb_pro2_data *data = CONTAINER_OF(d_work, struct kscan_hhkb_pro2_data, poll); const struct device *dev = data->dev; const struct kscan_hhkb_pro2_config *cfg = dev->config; bool matrix_read[MATRIX_CELLS];