drivers: watchdog: drop DEV_DATA/DEV_CFG usage
Stop using redundant DEV_DATA/DEV_CFG macros and use dev->data and dev->config instead. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
44679c7bd8
commit
b00150339a
4 changed files with 38 additions and 39 deletions
|
@ -59,10 +59,9 @@ struct wdt_sifive_dev_data {
|
|||
bool timeout_valid;
|
||||
};
|
||||
|
||||
#define DEV_CFG(dev) \
|
||||
((const struct wdt_sifive_device_config *const)(dev)->config)
|
||||
#define DEV_REG(dev) \
|
||||
((struct wdt_sifive_reg *)(DEV_CFG(dev))->regs)
|
||||
((struct wdt_sifive_reg *) \
|
||||
((const struct wdt_sifive_device_config *const)(dev)->config)->regs)
|
||||
|
||||
/**
|
||||
* @brief Set maximum length of timeout to watchdog
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue