* [PATCH 2/2] staging: mt7621-spi: fix indentation for switch statement
@ 2018-06-09 6:04 JoonHwan.Kim
0 siblings, 0 replies; only message in thread
From: JoonHwan.Kim @ 2018-06-09 6:04 UTC (permalink / raw)
To: gregkh; +Cc: neil, blogic, christian, devel, linux-kernel, kernel-janitors
* fix checkpatch.pl error:
ERROR: switch and case should be at the same indent
Signed-off-by: Joonhwan Kim <spilit464@gmail.com>
---
drivers/staging/mt7621-spi/spi-mt7621.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/drivers/staging/mt7621-spi/spi-mt7621.c b/drivers/staging/mt7621-spi/spi-mt7621.c
index a11cca3e2304..11a65ec48178 100644
--- a/drivers/staging/mt7621-spi/spi-mt7621.c
+++ b/drivers/staging/mt7621-spi/spi-mt7621.c
@@ -139,17 +139,17 @@ static int mt7621_spi_prepare(struct spi_device *spi, unsigned int speed)
reg &= ~(MT7621_CPHA | MT7621_CPOL);
switch(spi->mode & (SPI_CPOL | SPI_CPHA)) {
- case SPI_MODE_0:
- break;
- case SPI_MODE_1:
- reg |= MT7621_CPHA;
- break;
- case SPI_MODE_2:
- reg |= MT7621_CPOL;
- break;
- case SPI_MODE_3:
- reg |= MT7621_CPOL | MT7621_CPHA;
- break;
+ case SPI_MODE_0:
+ break;
+ case SPI_MODE_1:
+ reg |= MT7621_CPHA;
+ break;
+ case SPI_MODE_2:
+ reg |= MT7621_CPOL;
+ break;
+ case SPI_MODE_3:
+ reg |= MT7621_CPOL | MT7621_CPHA;
+ break;
}
mt7621_spi_write(rs, MT7621_SPI_MASTER, reg);
--
2.17.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-06-09 6:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-09 6:04 [PATCH 2/2] staging: mt7621-spi: fix indentation for switch statement JoonHwan.Kim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).