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:
parent
8ff72d723c
commit
01e976379c
2 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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…
Add table
Reference in a new issue