Skip to content

Commit

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

  ERROR: space required before the open parenthesis '('
  torvalds#295: FILE: spi-mtk-nor.c:295:
  +		switch(op->data.dir) {

Signed-off-by: Jay Fang <f.fangjian@huawei.com>
Link: https://lore.kernel.org/r/1616566602-13894-6-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 f2edb98 commit 99b3a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-mtk-nor.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ static bool mtk_nor_supports_op(struct spi_mem *mem,
return false;

if ((op->addr.nbytes == 3) || (op->addr.nbytes == 4)) {
switch(op->data.dir) {
switch (op->data.dir) {
case SPI_MEM_DATA_IN:
if (mtk_nor_match_read(op))
return true;
Expand Down

0 comments on commit 99b3a36

Please sign in to comment.