Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1545056 > unrolled thread

[PATCH 3/3] gpio: mockup: coding style fixes

Started byBartosz Golaszewski <bgolaszewski@baylibre.com>
First post2016-12-20 12:30 +0100
Last post2016-12-28 14:20 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/3] gpio: mockup: coding style fixes Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2016-12-20 12:30 +0100
    Re: [PATCH 3/3] gpio: mockup: coding style fixes Linus Walleij <linus.walleij@linaro.org> - 2016-12-28 14:20 +0100

#1545056 — [PATCH 3/3] gpio: mockup: coding style fixes

FromBartosz Golaszewski <bgolaszewski@baylibre.com>
Date2016-12-20 12:30 +0100
Subject[PATCH 3/3] gpio: mockup: coding style fixes
Message-ID<sQqMh-4Vr-11@gated-at.bofh.it>
Fix whitespace errors and arrange local variables for better
readability.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
 drivers/gpio/gpio-mockup.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c
index 10f6bf6..82a9efd 100644
--- a/drivers/gpio/gpio-mockup.c
+++ b/drivers/gpio/gpio-mockup.c
@@ -120,12 +120,9 @@ static int mockup_gpio_add(struct device *dev,
 
 static int mockup_gpio_probe(struct platform_device *pdev)
 {
-	struct device *dev = &pdev->dev;
 	struct mockup_gpio_controller *cntr;
-	int ret;
-	int i;
-	int base;
-	int ngpio;
+	struct device *dev = &pdev->dev;
+	int ret, i, base, ngpio;
 	char *chip_name;
 
 	if (gpio_mockup_params_nr < 2)
@@ -174,8 +171,8 @@ static int mockup_gpio_probe(struct platform_device *pdev)
 
 static struct platform_driver mockup_gpio_driver = {
 	.driver = {
-		   .name = GPIO_NAME,
-		   },
+		.name = GPIO_NAME,
+	},
 	.probe = mockup_gpio_probe,
 };
 
-- 
2.9.3

[toc] | [next] | [standalone]


#1547950

FromLinus Walleij <linus.walleij@linaro.org>
Date2016-12-28 14:20 +0100
Message-ID<sTmj7-gu-1@gated-at.bofh.it>
In reply to#1545056
On Tue, Dec 20, 2016 at 12:28 PM, Bartosz Golaszewski
<bgolaszewski@baylibre.com> wrote:

> Fix whitespace errors and arrange local variables for better
> readability.
>
> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>

Patch applied.

Yours,
Linus Walleij

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web