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:
Gerard Marull-Paretas 2022-01-18 17:00:11 +01:00 committed by Carles Cufí
commit b00150339a
4 changed files with 38 additions and 39 deletions

View file

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