refactor: Move away from deprecated label usages.
* Move away from DT_LABEL. * Move to DEVICE_DT_GET for non-behavior device access. * Move various drivers to `gpio_spec_dt` and `DT` related macros. * Remove mcp23017 while at it, since better upstream driver is available.
This commit is contained in:
parent
062f94d014
commit
09ed79a867
41 changed files with 199 additions and 828 deletions
|
|
@ -11,20 +11,13 @@
|
|||
#include <zephyr/sys/util.h>
|
||||
|
||||
struct ec11_config {
|
||||
const char *a_label;
|
||||
const uint8_t a_pin;
|
||||
const uint8_t a_flags;
|
||||
|
||||
const char *b_label;
|
||||
const uint8_t b_pin;
|
||||
const uint8_t b_flags;
|
||||
const struct gpio_dt_spec a;
|
||||
const struct gpio_dt_spec b;
|
||||
|
||||
const uint8_t resolution;
|
||||
};
|
||||
|
||||
struct ec11_data {
|
||||
const struct device *a;
|
||||
const struct device *b;
|
||||
uint8_t ab_state;
|
||||
int8_t pulses;
|
||||
int8_t ticks;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue