summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/drivers/sensor/ec11/ec11_trigger.c3
-rw-r--r--app/src/usb.c2
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,