Commit 364ac456 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski Committed by Linus Walleij

gpio: mockup: coding style fixes

Fix whitespace errors and arrange local variables for better
readability.
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent ad6d8004
...@@ -120,12 +120,9 @@ static int mockup_gpio_add(struct device *dev, ...@@ -120,12 +120,9 @@ static int mockup_gpio_add(struct device *dev,
static int mockup_gpio_probe(struct platform_device *pdev) static int mockup_gpio_probe(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev;
struct mockup_gpio_controller *cntr; struct mockup_gpio_controller *cntr;
int ret; struct device *dev = &pdev->dev;
int i; int ret, i, base, ngpio;
int base;
int ngpio;
char *chip_name; char *chip_name;
if (gpio_mockup_params_nr < 2) if (gpio_mockup_params_nr < 2)
...@@ -174,8 +171,8 @@ static int mockup_gpio_probe(struct platform_device *pdev) ...@@ -174,8 +171,8 @@ static int mockup_gpio_probe(struct platform_device *pdev)
static struct platform_driver mockup_gpio_driver = { static struct platform_driver mockup_gpio_driver = {
.driver = { .driver = {
.name = GPIO_NAME, .name = GPIO_NAME,
}, },
.probe = mockup_gpio_probe, .probe = mockup_gpio_probe,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment