Skip to content

Commit

Permalink
spi: omap-100k: Fix checkpatch spacing errors
Browse files Browse the repository at this point in the history
Fix checkpatch errors:

  ERROR: space prohibited before that ',' (ctx:WxW)
  torvalds#113: FILE: spi-omap-100k.c:113:
  +	writew(data , spi100k->base + SPI_TX_MSB);
 	            ^
  ERROR: space prohibited before that ',' (ctx:WxW)
  torvalds#249: FILE: spi-omap-100k.c:249:
  +	writew(0x3e , spi100k->base + SPI_SETUP1);
 	            ^
  ERROR: space prohibited before that ',' (ctx:WxW)
  torvalds#250: FILE: spi-omap-100k.c:250:
  +	writew(0x00 , spi100k->base + SPI_STATUS);
 	            ^
  ERROR: space prohibited before that ',' (ctx:WxW)
  torvalds#251: FILE: spi-omap-100k.c:251:
  +	writew(0x3e , spi100k->base + SPI_CTRL);
 	            ^

Signed-off-by: Jay Fang <f.fangjian@huawei.com>
Link: https://lore.kernel.org/r/1616566602-13894-5-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 c07caca commit f2edb98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/spi/spi-omap-100k.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ static void spi100k_write_data(struct spi_master *master, int len, int data)
}

spi100k_enable_clock(master);
writew(data , spi100k->base + SPI_TX_MSB);
writew(data, spi100k->base + SPI_TX_MSB);

writew(SPI_CTRL_SEN(0) |
SPI_CTRL_WORD_SIZE(len) |
Expand Down Expand Up @@ -246,9 +246,9 @@ static int omap1_spi100k_setup_transfer(struct spi_device *spi,
cs->word_len = word_len;

/* SPI init before transfer */
writew(0x3e , spi100k->base + SPI_SETUP1);
writew(0x00 , spi100k->base + SPI_STATUS);
writew(0x3e , spi100k->base + SPI_CTRL);
writew(0x3e, spi100k->base + SPI_SETUP1);
writew(0x00, spi100k->base + SPI_STATUS);
writew(0x3e, spi100k->base + SPI_CTRL);

return 0;
}
Expand Down

0 comments on commit f2edb98

Please sign in to comment.