Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762696AbcLTL2q (ORCPT ); Tue, 20 Dec 2016 06:28:46 -0500 Received: from mail-wj0-f176.google.com ([209.85.210.176]:34654 "EHLO mail-wj0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762236AbcLTL2h (ORCPT ); Tue, 20 Dec 2016 06:28:37 -0500 From: Bartosz Golaszewski To: Bamvor Jian Zhang , Linus Walleij , Alexandre Courbot Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 3/3] gpio: mockup: coding style fixes Date: Tue, 20 Dec 2016 12:28:20 +0100 Message-Id: <1482233300-20078-4-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1482233300-20078-1-git-send-email-bgolaszewski@baylibre.com> References: <1482233300-20078-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1026 Lines: 40 Fix whitespace errors and arrange local variables for better readability. Signed-off-by: Bartosz Golaszewski --- 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