mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] spi: spi-fsl-lpspi: Fix indentation and open brace should be on the previous line
@ 2020-04-07 12:55 Aishwarya R
  0 siblings, 0 replies; only message in thread
From: Aishwarya R @ 2020-04-07 12:55 UTC (permalink / raw)
  Cc: aishwaryarj100, Mark Brown, linux-spi, linux-kernel

Resolved open brace { should be on the previous line checkpatch
error and fix the indentation

Signed-off-by: Aishwarya R <aishwaryarj100@gmail.com>
---
 drivers/spi/spi-fsl-lpspi.c | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/drivers/spi/spi-fsl-lpspi.c b/drivers/spi/spi-fsl-lpspi.c
index 8b41b70f6f5c..511211b82430 100644
--- a/drivers/spi/spi-fsl-lpspi.c
+++ b/drivers/spi/spi-fsl-lpspi.c
@@ -186,14 +186,13 @@ static bool fsl_lpspi_can_dma(struct spi_controller *controller,

 	bytes_per_word = fsl_lpspi_bytes_per_word(transfer->bits_per_word);

-	switch (bytes_per_word)
-	{
-		case 1:
-		case 2:
-		case 4:
-			break;
-		default:
-			return false;
+	switch (bytes_per_word) {
+	case 1:
+	case 2:
+	case 4:
+		break;
+	default:
+		return false;
 	}

 	return true;
--
2.17.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-07 12:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-07 12:55 [PATCH] spi: spi-fsl-lpspi: Fix indentation and open brace should be on the previous line Aishwarya R

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®