From patchwork Tue Dec 20 11:28:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 88584 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1668295qgi; Tue, 20 Dec 2016 03:29:07 -0800 (PST) X-Received: by 10.98.18.133 with SMTP id 5mr18454911pfs.124.1482233347254; Tue, 20 Dec 2016 03:29:07 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y65si8405077plh.248.2016.12.20.03.29.07; Tue, 20 Dec 2016 03:29:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762333AbcLTL2n (ORCPT + 4 others); Tue, 20 Dec 2016 06:28:43 -0500 Received: from mail-wj0-f177.google.com ([209.85.210.177]:34654 "EHLO mail-wj0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762017AbcLTL2h (ORCPT ); Tue, 20 Dec 2016 06:28:37 -0500 Received: by mail-wj0-f177.google.com with SMTP id tg4so175001888wjb.1 for ; Tue, 20 Dec 2016 03:28:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lqktWg1qp5ijoAV/XftTG9YfHRzL0GMwTagBFTs7/aQ=; b=L3LGBR/LusAGXlm92O98LSZzQuAmx//zxiWpJh5RVb3NwX7pMy4VvZxCQiL9cGKjz0 BzpYcTBp4FrbRf+Fgg328TKANjld5Wclg6XQwg/1AR2COV+DuJYAxNy9FJrRFtibgM25 uR3zJc37xFGfUyDxJHj7jaA0sDYmY69ngOauaZCbNb6vS9N/bbMEHKsLv9I1qztQ0oPJ eFC8WY4nmF/GDIEiO5FwecmGrzdajSqGcvqTNv9ks+pSKVF/zvreXUDGSGB4tZSEemeH 379Fo4ZittFuodW4EyPELHXNqd8iYKhbfayhvm9I8pUqkfu7VqqoHoVhlbrKrle7+DDe 6cpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lqktWg1qp5ijoAV/XftTG9YfHRzL0GMwTagBFTs7/aQ=; b=UTIWKW2hegHqEtV2ILjpQpOtcoUNi3eK/xYSIWdbyA4dhHevP+NW9ipSFZSMbAG7Mi 1p6+gzROp6A6DyKM9TVrnqg0NI3Ds7390uUuyfP77zdGlyCFgTBNVrkLb5sgJzWovSzT h7NtpJSOYZoYFF10uvkWnGQ43dfYOgMOYD4n1+xyRUhV/4XHIEoGfsHnZFNGxzFFjrq6 t11Q7fVvmFkmvyh2orITKzdFwvoQ3jR2CuKhXA9UBgpG0hZ0GnOPJO1fvnw10jwcx5Nc H76H9rXNjbrgniKpCDUI6d3y8WBHawNAjPojyJErh+B9/lJ5y7aINR0ghpaDlTV8NMal dUCg== X-Gm-Message-State: AIkVDXKHk6FmTztIVkgS+B2BILyWqXWWARjMVHZe4rGZvvunqkm0mO8mMUV1dH7W7IenCiy6 X-Received: by 10.194.157.165 with SMTP id wn5mr17287455wjb.8.1482233315783; Tue, 20 Dec 2016 03:28:35 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id x5sm25070467wje.36.2016.12.20.03.28.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Dec 2016 03:28:35 -0800 (PST) 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-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org 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(-) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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, };