All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] spi: mediatek: Attempt to address style issues in spi-mt7621.c
@ 2019-03-13 12:24 ` Armando Miraglia
  0 siblings, 0 replies; 46+ messages in thread
From: Armando Miraglia @ 2019-03-13 12:24 UTC (permalink / raw)
  To: neil
  Cc: Armando Miraglia, gregkh, matthias.bgg, sr, sankalpnegi2310,
	gch981213, devel, linux-arm-kernel, linux-mediatek, linux-kernel

Running Lindent on the mt7621-spi.c file in drivers/staging I noticed that the
file contained style issues. This change attempts to address such style
problems.

Signed-off-by: Armando Miraglia <armax@google.com>
---
NOTE: resend this patch to include all mainteners listed by get_mantainers.pl.
 drivers/staging/mt7621-spi/spi-mt7621.c | 27 +++++++++++++------------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/drivers/staging/mt7621-spi/spi-mt7621.c b/drivers/staging/mt7621-spi/spi-mt7621.c
index b509f9fe3346..03d53845f8c5 100644
--- a/drivers/staging/mt7621-spi/spi-mt7621.c
+++ b/drivers/staging/mt7621-spi/spi-mt7621.c
@@ -52,14 +52,14 @@
 #define MT7621_LSB_FIRST	BIT(3)
 
 struct mt7621_spi {
-	struct spi_master	*master;
-	void __iomem		*base;
-	unsigned int		sys_freq;
-	unsigned int		speed;
-	struct clk		*clk;
-	int			pending_write;
-
-	struct mt7621_spi_ops	*ops;
+	struct spi_master *master;
+	void __iomem *base;
+	unsigned int sys_freq;
+	unsigned int speed;
+	struct clk *clk;
+	int pending_write;
+
+	struct mt7621_spi_ops *ops;
 };
 
 static inline struct mt7621_spi *spidev_to_mt7621_spi(struct spi_device *spi)
@@ -303,7 +303,7 @@ static int mt7621_spi_setup(struct spi_device *spi)
 	struct mt7621_spi *rs = spidev_to_mt7621_spi(spi);
 
 	if ((spi->max_speed_hz == 0) ||
-		(spi->max_speed_hz > (rs->sys_freq / 2)))
+	    (spi->max_speed_hz > (rs->sys_freq / 2)))
 		spi->max_speed_hz = (rs->sys_freq / 2);
 
 	if (spi->max_speed_hz < (rs->sys_freq / 4097)) {
@@ -316,9 +316,10 @@ static int mt7621_spi_setup(struct spi_device *spi)
 }
 
 static const struct of_device_id mt7621_spi_match[] = {
-	{ .compatible = "ralink,mt7621-spi" },
+	{.compatible = "ralink,mt7621-spi"},
 	{},
 };
+
 MODULE_DEVICE_TABLE(of, mt7621_spi_match);
 
 static int mt7621_spi_probe(struct platform_device *pdev)
@@ -408,9 +409,9 @@ MODULE_ALIAS("platform:" DRIVER_NAME);
 
 static struct platform_driver mt7621_spi_driver = {
 	.driver = {
-		.name = DRIVER_NAME,
-		.of_match_table = mt7621_spi_match,
-	},
+		   .name = DRIVER_NAME,
+		   .of_match_table = mt7621_spi_match,
+		   },
 	.probe = mt7621_spi_probe,
 	.remove = mt7621_spi_remove,
 };
-- 
2.21.0.360.g471c308f928-goog


^ permalink raw reply related	[flat|nested] 46+ messages in thread
* [PATCH] spi: mediatek: Attempt to address style issues in spi-mt7621.c
@ 2019-03-13 11:57 Armando Miraglia
  0 siblings, 0 replies; 46+ messages in thread
From: Armando Miraglia @ 2019-03-13 11:57 UTC (permalink / raw)
  To: neil-+NVA1uvv1dVBDLzU/O5InQ
  Cc: Armando Miraglia, linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

Running Lindent on the mt7621-spi.c file in drivers/staging I noticed that the
file contained style issues. This change attempts to address such style
problems.

Signed-off-by: Armando Miraglia <armax-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
---
 drivers/staging/mt7621-spi/spi-mt7621.c | 27 +++++++++++++------------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/drivers/staging/mt7621-spi/spi-mt7621.c b/drivers/staging/mt7621-spi/spi-mt7621.c
index b509f9fe3346..03d53845f8c5 100644
--- a/drivers/staging/mt7621-spi/spi-mt7621.c
+++ b/drivers/staging/mt7621-spi/spi-mt7621.c
@@ -52,14 +52,14 @@
 #define MT7621_LSB_FIRST	BIT(3)
 
 struct mt7621_spi {
-	struct spi_master	*master;
-	void __iomem		*base;
-	unsigned int		sys_freq;
-	unsigned int		speed;
-	struct clk		*clk;
-	int			pending_write;
-
-	struct mt7621_spi_ops	*ops;
+	struct spi_master *master;
+	void __iomem *base;
+	unsigned int sys_freq;
+	unsigned int speed;
+	struct clk *clk;
+	int pending_write;
+
+	struct mt7621_spi_ops *ops;
 };
 
 static inline struct mt7621_spi *spidev_to_mt7621_spi(struct spi_device *spi)
@@ -303,7 +303,7 @@ static int mt7621_spi_setup(struct spi_device *spi)
 	struct mt7621_spi *rs = spidev_to_mt7621_spi(spi);
 
 	if ((spi->max_speed_hz == 0) ||
-		(spi->max_speed_hz > (rs->sys_freq / 2)))
+	    (spi->max_speed_hz > (rs->sys_freq / 2)))
 		spi->max_speed_hz = (rs->sys_freq / 2);
 
 	if (spi->max_speed_hz < (rs->sys_freq / 4097)) {
@@ -316,9 +316,10 @@ static int mt7621_spi_setup(struct spi_device *spi)
 }
 
 static const struct of_device_id mt7621_spi_match[] = {
-	{ .compatible = "ralink,mt7621-spi" },
+	{.compatible = "ralink,mt7621-spi"},
 	{},
 };
+
 MODULE_DEVICE_TABLE(of, mt7621_spi_match);
 
 static int mt7621_spi_probe(struct platform_device *pdev)
@@ -408,9 +409,9 @@ MODULE_ALIAS("platform:" DRIVER_NAME);
 
 static struct platform_driver mt7621_spi_driver = {
 	.driver = {
-		.name = DRIVER_NAME,
-		.of_match_table = mt7621_spi_match,
-	},
+		   .name = DRIVER_NAME,
+		   .of_match_table = mt7621_spi_match,
+		   },
 	.probe = mt7621_spi_probe,
 	.remove = mt7621_spi_remove,
 };
-- 
2.21.0.360.g471c308f928-goog

^ permalink raw reply related	[flat|nested] 46+ messages in thread

end of thread, other threads:[~2019-03-14 20:51 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-13 12:24 [PATCH] spi: mediatek: Attempt to address style issues in spi-mt7621.c Armando Miraglia
2019-03-13 12:24 ` Armando Miraglia
2019-03-13 12:28 ` Matthias Brugger
2019-03-13 12:28   ` Matthias Brugger
2019-03-13 12:28   ` Matthias Brugger
2019-03-13 12:31   ` Armando Miraglia
2019-03-13 12:31     ` Armando Miraglia
2019-03-13 16:34   ` Chuanhong Guo
2019-03-13 16:34     ` Chuanhong Guo
2019-03-13 16:46     ` Matthias Brugger
2019-03-13 16:46       ` Matthias Brugger
2019-03-13 16:54       ` Stefan Roese
2019-03-13 16:54         ` Stefan Roese
2019-03-13 22:14         ` NeilBrown
2019-03-13 22:14           ` NeilBrown
2019-03-14  2:26           ` Chuanhong Guo
2019-03-14  2:26             ` Chuanhong Guo
2019-03-14  2:26             ` Chuanhong Guo
2019-03-14  2:36             ` NeilBrown
2019-03-14  2:36               ` NeilBrown
2019-03-13 12:34 ` Dan Carpenter
2019-03-13 12:34   ` Dan Carpenter
2019-03-13 12:34   ` Dan Carpenter
2019-03-13 16:47   ` Matthias Brugger
2019-03-13 16:47     ` Matthias Brugger
2019-03-14 11:13   ` Armando Miraglia
2019-03-14 11:13     ` Armando Miraglia
2019-03-14 11:27     ` Dan Carpenter
2019-03-14 11:27       ` Dan Carpenter
2019-03-14 11:27       ` Dan Carpenter
2019-03-14 14:07       ` Jean Delvare
2019-03-14 14:07         ` Jean Delvare
2019-03-14 20:50         ` Joe Perches
2019-03-14 20:50           ` Joe Perches
2019-03-14 11:36     ` Stefan Roese
2019-03-14 11:36       ` Stefan Roese
2019-03-14 11:37       ` Armando Miraglia
2019-03-14 11:37         ` Armando Miraglia
2019-03-14 13:14         ` Matthias Brugger
2019-03-14 13:14           ` Matthias Brugger
2019-03-14 13:14           ` Matthias Brugger
2019-03-14 13:24           ` Stefan Roese
2019-03-14 13:24             ` Stefan Roese
2019-03-14 17:01             ` Matthias Brugger
2019-03-14 17:01               ` Matthias Brugger
  -- strict thread matches above, loose matches on Subject: below --
2019-03-13 11:57 Armando Miraglia

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.