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
|
@ -154,10 +154,10 @@ struct i2c_ctrl_data {
|
|||
|
||||
#define DRV_DATA(dev) ((struct i2c_ctrl_data *)(dev)->data)
|
||||
|
||||
#define HAL_I2C_INSTANCE(dev) (struct smb_reg *)(DRV_CONFIG(dev)->base)
|
||||
#define HAL_I2C_INSTANCE(dev) ((struct smb_reg *)DRV_CONFIG(dev)->base)
|
||||
|
||||
#define HAL_I2C_FIFO_INSTANCE(dev) \
|
||||
(struct smb_fifo_reg *)(DRV_CONFIG(dev)->base)
|
||||
((struct smb_fifo_reg *)DRV_CONFIG(dev)->base)
|
||||
|
||||
/* Recommended I2C timing values are based on 15 MHz */
|
||||
static const struct npcx_i2c_timing_cfg npcx_15m_speed_confs[] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue