summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-mockup.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2016-12-20 12:28:20 +0100
committerLinus Walleij <linus.walleij@linaro.org>2016-12-28 14:13:38 +0100
commit364ac45655f10217d3fadc013347fde49f870f39 (patch)
tree307b1d58bbb1b88a32ad3196710593614f848b20 /drivers/gpio/gpio-mockup.c
parentad6d8004fa29a8958381b60215e32d1e903b0492 (diff)
downloadop-kernel-dev-364ac45655f10217d3fadc013347fde49f870f39.zip
op-kernel-dev-364ac45655f10217d3fadc013347fde49f870f39.tar.gz
gpio: mockup: coding style fixes
Fix whitespace errors and arrange local variables for better readability. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-mockup.c')
-rw-r--r--drivers/gpio/gpio-mockup.c11
1 files 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 @@ err:
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,
};
OpenPOWER on IntegriCloud