Browse Source

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
xmkb
innovaker 4 years ago committed by Pete Johanson
parent
commit
f7d9d52221
  1. 3
      app/drivers/sensor/ec11/ec11_trigger.c
  2. 2
      app/src/usb.c

3
app/drivers/sensor/ec11/ec11_trigger.c

@ -66,8 +66,7 @@ static void ec11_b_gpio_callback(const struct device *dev, struct gpio_callback @@ -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);

2
app/src/usb.c

@ -25,7 +25,7 @@ static const struct device *hid_dev; @@ -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,

Loading…
Cancel
Save