Skip to content

Commit

Permalink
i2c: nomadik: Fix space errors
Browse files Browse the repository at this point in the history
Fix the following checkpatch errors:

  ERROR: space prohibited before that ',' (ctx:WxW)
  torvalds#280: FILE: drivers/i2c/busses/i2c-nomadik.c:280:
  +	i2c_clr_bit(dev->virtbase + I2C_CR , I2C_CR_PE);
  	                                   ^
  ERROR: space prohibited before that ',' (ctx:WxW)
  torvalds#528: FILE: drivers/i2c/busses/i2c-nomadik.c:528:
  +	i2c_set_bit(dev->virtbase + I2C_CR , I2C_CR_PE);
 	                                   ^

No functional changes.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Zihao Tang <tangzihao1@hisilicon.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
  • Loading branch information
Tian Tao authored and wsakernel committed Apr 15, 2021
1 parent 87c2de5 commit 28fb89f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/i2c/busses/i2c-nomadik.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ static int init_hw(struct nmk_i2c_dev *dev)
goto exit;

/* disable the controller */
i2c_clr_bit(dev->virtbase + I2C_CR , I2C_CR_PE);
i2c_clr_bit(dev->virtbase + I2C_CR, I2C_CR_PE);

disable_all_interrupts(dev);

Expand Down Expand Up @@ -525,7 +525,7 @@ static int write_i2c(struct nmk_i2c_dev *dev, u16 flags)
dev->virtbase + I2C_CR);

/* enable the controller */
i2c_set_bit(dev->virtbase + I2C_CR , I2C_CR_PE);
i2c_set_bit(dev->virtbase + I2C_CR, I2C_CR_PE);

init_completion(&dev->xfer_complete);

Expand Down

0 comments on commit 28fb89f

Please sign in to comment.