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
This commit is contained in:
innovaker 2020-11-19 22:58:03 +00:00 committed by Pete Johanson
parent 00ca0d2f1c
commit f7d9d52221
2 changed files with 2 additions and 3 deletions

View File

@ -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);

View File

@ -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,