diff options
author | innovaker <66737976+innovaker@users.noreply.github.com> | 2020-11-19 22:58:03 +0000 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-12-14 12:41:25 -0500 |
commit | f7d9d522218e12cffb44fc0102b2bb0cf8174d42 (patch) | |
tree | ca320e4e4dd66b8c6233ba72426ebbbe4ef7a98b | |
parent | 00ca0d2f1cb0a939e5207454d89c6d37ef9f45a6 (diff) |
refactor(app): replace `void` with `const struct device *dev` in ISR CBs
See: https://docs.zephyrproject.org/latest/releases/release-notes-2.4.html
PR: #467
-rw-r--r-- | app/drivers/sensor/ec11/ec11_trigger.c | 3 | ||||
-rw-r--r-- | app/src/usb.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/app/drivers/sensor/ec11/ec11_trigger.c b/app/drivers/sensor/ec11/ec11_trigger.c index 00bebb1..555e1f4 100644 --- a/app/drivers/sensor/ec11/ec11_trigger.c +++ b/app/drivers/sensor/ec11/ec11_trigger.c @@ -66,8 +66,7 @@ static void ec11_b_gpio_callback(const struct device *dev, struct gpio_callback #endif } -static void ec11_thread_cb(void *arg) { - const struct device *dev = arg; +static void ec11_thread_cb(const struct device *dev) { struct ec11_data *drv_data = dev->data; drv_data->handler(dev, drv_data->trigger); diff --git a/app/src/usb.c b/app/src/usb.c index 009d7af..2b3de78 100644 --- a/app/src/usb.c +++ b/app/src/usb.c @@ -25,7 +25,7 @@ static const struct device *hid_dev; static K_SEM_DEFINE(hid_sem, 1, 1); -static void in_ready_cb(void) { k_sem_give(&hid_sem); } +static void in_ready_cb(const struct device *dev) { k_sem_give(&hid_sem); } static const struct hid_ops ops = { .int_in_ready = in_ready_cb, |