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:
Wealian Liao 2022-01-21 14:51:52 +08:00 committed by Carles Cufí
commit 3565f71a72
11 changed files with 13 additions and 13 deletions

View file

@ -61,7 +61,7 @@ struct uart_npcx_data {
#define DRV_DATA(dev) ((struct uart_npcx_data *)(dev)->data)
#define HAL_INSTANCE(dev) (struct uart_reg *)(DRV_CONFIG(dev)->uconf.base)
#define HAL_INSTANCE(dev) ((struct uart_reg *)DRV_CONFIG(dev)->uconf.base)
#if defined(CONFIG_PM) && defined(CONFIG_UART_INTERRUPT_DRIVEN)
static void uart_npcx_pm_constraint_set(struct uart_npcx_data *data,