drivers: npcx: Correct the macro parentheses
This corrects the following: 1. The priority of type cast is lower than member access. So don't need the redundant parentheses. 2. The macro should be added to the parentheses. Signed-off-by: Wealian Liao <WHLIAO@nuvoton.com>
This commit is contained in:
parent
499cc72411
commit
3565f71a72
11 changed files with 13 additions and 13 deletions
|
@ -84,7 +84,7 @@ struct miwu_dev_callback miwu_cb;
|
|||
/* Driver convenience defines */
|
||||
#define DRV_CONFIG(dev) ((const struct wdt_npcx_config *)(dev)->config)
|
||||
#define DRV_DATA(dev) ((struct wdt_npcx_data *)(dev)->data)
|
||||
#define HAL_INSTANCE(dev) (struct twd_reg *)(DRV_CONFIG(dev)->base)
|
||||
#define HAL_INSTANCE(dev) ((struct twd_reg *)DRV_CONFIG(dev)->base)
|
||||
|
||||
/* WDT local inline functions */
|
||||
static inline int wdt_t0out_reload(const struct device *dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue