From patchwork Wed Dec 9 13:42:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 58106 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp676559lbb; Wed, 9 Dec 2015 05:42:44 -0800 (PST) X-Received: by 10.98.10.83 with SMTP id s80mr12979029pfi.79.1449668564698; Wed, 09 Dec 2015 05:42:44 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u63si12822783pfa.181.2015.12.09.05.42.44; Wed, 09 Dec 2015 05:42:44 -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; 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; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751310AbbLINmo (ORCPT + 4 others); Wed, 9 Dec 2015 08:42:44 -0500 Received: from mail-lb0-f173.google.com ([209.85.217.173]:36021 "EHLO mail-lb0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751531AbbLINmn (ORCPT ); Wed, 9 Dec 2015 08:42:43 -0500 Received: by lbblt2 with SMTP id lt2so30324392lbb.3 for ; Wed, 09 Dec 2015 05:42:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=lH5DTXMuwVnw0bpl1Wrf5omDQ5C0K8oHjl8/BuZJlXw=; b=JXyQBp/R8/rvtHhqeIxQA+2hnel6lTL+VbG90mzxfjh0+bup9YWfQVKL4pXDRTumF9 duIiBd0VoxvKSU9NZjVevfJOYOdyqOxg33ckFGGPI7xJfQV3AQst8OrppMPLSQIaZlog qVuMSuNnjsjWaLIMKGr5yxNH+41jPXhrzQhRgGOkQxapTQFA91qi3o0DKTiupFvnia7b ORiKO+abAarHJNVGgfJXWSUuqTf5huobGRPM6Pdnu363993gpHI7qzElQ/2OOkdvE9Ak PZVIKG0cuM5vb0IhXNaTuNGCgGs5hsKgAl78l9DVNhvxIKPkcJa7hnsdGNA0cYeMq9Bs f+Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=lH5DTXMuwVnw0bpl1Wrf5omDQ5C0K8oHjl8/BuZJlXw=; b=I7Wz1+ljGkVCV4lZYus5/MwSuojz1pvflIOiu6cS/xdF9Tx4mm+3qfPczOkzgs1BAf minMXvNd3i+1qK6ruYF7xP6gFiutPpu/TUYsypAOQ7khaVXB74OOueLwY+cOV81AtIbx bDtvI1Ugw72GCnq+kZDhkHfcB/AUkxG1TkWEc4LD/yldOjxjFym+Hg9FVyOC71sASEnn dfA+n9XWf1FBQCtwD7X+PmRcIsyBoN+o6XACeaGExaUbL++vgl0USeDSk3lchjgTh3Jq CWT9Y3vi0j42PCWMUYVJDEb1CNP4sGfbQY2G1outo7dtGNctrQbU+xC06HgRUXuRYJs5 Sy3g== X-Gm-Message-State: ALoCoQmcOgjs5Z2nW5+CDEGxPkrDNLIhsDX++uQVCWQxUAF8hzyeSnxCDxdjLPyeGPhXTB6R9qN7/K9s4X0SN0rVVbltzr0XkA== X-Received: by 10.112.55.38 with SMTP id o6mr1988912lbp.38.1449668561913; Wed, 09 Dec 2015 05:42:41 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id h37sm1468427lfi.8.2015.12.09.05.42.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2015 05:42:41 -0800 (PST) From: Linus Walleij To: linux-gpio@vger.kernel.org, Johan Hovold , Alexandre Courbot , Michael Welling , Markus Pargmann , Paul Mundt Cc: Linus Walleij , linux-sh@vger.kernel.org Subject: [PATCH 150/182] sh: sdk7786-gpio: switch to gpiochip_add_data() Date: Wed, 9 Dec 2015 14:42:37 +0100 Message-Id: <1449668557-5309-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.3 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org We're planning to remove the gpiochip_add() function to swith to gpiochip_add_data() with NULL for data argument. Cc: Paul Mundt Cc: linux-sh@vger.kernel.org Signed-off-by: Linus Walleij --- SH people: please ACK this so I can take it through the GPIO tree. --- arch/sh/boards/mach-sdk7786/gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.4.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/arch/sh/boards/mach-sdk7786/gpio.c b/arch/sh/boards/mach-sdk7786/gpio.c index f71ce09d4e15..47997010b77a 100644 --- a/arch/sh/boards/mach-sdk7786/gpio.c +++ b/arch/sh/boards/mach-sdk7786/gpio.c @@ -9,7 +9,7 @@ */ #include #include -#include +#include #include #include #include @@ -44,6 +44,6 @@ static struct gpio_chip usrgpir_gpio_chip = { static int __init usrgpir_gpio_setup(void) { - return gpiochip_add(&usrgpir_gpio_chip); + return gpiochip_add_data(&usrgpir_gpio_chip, NULL); } device_initcall(usrgpir_gpio_setup);