Skip to content

Commit

Permalink
spi: sprd: Fix checkpatch spacing error
Browse files Browse the repository at this point in the history
Fix checkpatch error:

  ERROR: space prohibited before that close parenthesis ')'
  torvalds#213: FILE: spi-sprd-adi.c:213:
  +	rd_addr = (val & RD_ADDR_MASK ) >> RD_ADDR_SHIFT;

Signed-off-by: Jay Fang <f.fangjian@huawei.com>
Link: https://lore.kernel.org/r/1616566602-13894-3-git-send-email-f.fangjian@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Jay Fang authored and broonie committed Mar 24, 2021
1 parent c983108 commit e13a870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-sprd-adi.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ static int sprd_adi_read(struct sprd_adi *sadi, u32 reg_paddr, u32 *read_val)
* address. Then we can check the returned register address to validate
* data.
*/
rd_addr = (val & RD_ADDR_MASK ) >> RD_ADDR_SHIFT;
rd_addr = (val & RD_ADDR_MASK) >> RD_ADDR_SHIFT;

if (rd_addr != (reg_paddr & REG_ADDR_LOW_MASK)) {
dev_err(sadi->dev, "read error, reg addr = 0x%x, val = 0x%x\n",
Expand Down

0 comments on commit e13a870

Please sign in to comment.