From patchwork Wed Dec 9 13:37:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 58088 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp673831lbb; Wed, 9 Dec 2015 05:37:48 -0800 (PST) X-Received: by 10.67.5.40 with SMTP id cj8mr7892601pad.98.1449668268030; Wed, 09 Dec 2015 05:37:48 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xd1si12790002pab.130.2015.12.09.05.37.47; Wed, 09 Dec 2015 05:37:48 -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 S1754216AbbLINhr (ORCPT + 4 others); Wed, 9 Dec 2015 08:37:47 -0500 Received: from mail-lb0-f177.google.com ([209.85.217.177]:36752 "EHLO mail-lb0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754136AbbLINhq (ORCPT ); Wed, 9 Dec 2015 08:37:46 -0500 Received: by lbblt2 with SMTP id lt2so30241226lbb.3 for ; Wed, 09 Dec 2015 05:37:45 -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=J+id2PwjaNJHFh2upCaFzR715EBynRTlsjuM33S/uQY=; b=hCZFzDaHSmwKyNrK+Ja/QJFbR+3qEc+8KWM0z4zxS6W1Mb/ew6N9DksT236lR6Q6uC Oaw/0dmQSM4UThMH7cdW03mpzp7AffRUz7nkKRt1lmj3HJcIG4Mf4zpY5qJ7773yoyJe 2igNR7e7/7mg2JSviBo8c8XZQ770iZRj4FgcJXHY6rZOIsqStMfb6XS5cMjt5yOph4Us oEMwvH8GDyHEWibafZWMIEZb9bPOMJoP3vzeS4EkUz6f/3+IAu90FLFM44tBFo4LlXIA lxmR4cgVkcEu4AP7ZoM8L5IH9ExToff99jOihXW9MtOwfPSK1EBsoAoc4oxUNHSJjm7d thhA== 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=J+id2PwjaNJHFh2upCaFzR715EBynRTlsjuM33S/uQY=; b=fQBzOWTT4XPyIcgTAAXrmsrXYcVVGJvkX17jZiNBwnCiDpRaW25KQhkEN11Tk/CVuz oUfpevkX9hGBPCPQi4oi9ZkqEqTzVr+GcMYs3iWcGVzD6lqT51FAdWL8yK+t0BB9civl p9hxK0hmnBIuqBuxgtHEVH8MX8bgj0Kb5AqR0WqSggcNxeU0U2Kr0+hTJbvWePFmDhl4 evvZoZv4M+S9Btcjvn6c5PGSYO6oTcua3vt3Ew+n+jXNwVPvz43iNGIFYCbJnhe8DqZP uEk3e4FQHLJs4QihbPvf7UdAorZwDnaB9O37h5p+MDcSrE5LG/mwp3KiD4Tb9bQkU+NE Iehw== X-Gm-Message-State: ALoCoQnezhRv7t8FaNAiR9yul1wcsKxq5eB1/aAeMX/OdeFe9kHTAQZAmI24vVwzxdBUlKduqB2dgeNND+P2/1Snwbyzxw2A7Q== X-Received: by 10.112.173.134 with SMTP id bk6mr2412634lbc.34.1449668265422; Wed, 09 Dec 2015 05:37:45 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id s63sm1430264lfd.31.2015.12.09.05.37.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2015 05:37:44 -0800 (PST) From: Linus Walleij To: linux-gpio@vger.kernel.org, Johan Hovold , Alexandre Courbot , Michael Welling , Markus Pargmann , Sonic Zhang , Steven Miao , adi-buildroot-devel@lists.sourceforge.net Cc: Linus Walleij Subject: [PATCH 132/182] blackfin: gpio: switch to gpiochip_add_data() Date: Wed, 9 Dec 2015 14:37:40 +0100 Message-Id: <1449668260-4207-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: Sonic Zhang Cc: Steven Miao Cc: adi-buildroot-devel@lists.sourceforge.net Signed-off-by: Linus Walleij --- Blackfin maintainers: please ACK this so I can take it through the GPIO tree. BTW: isn't this going away? I liked Sonic's drivers/pinctrl/pinctrl-adi2.c driver, is this adi1? It should be modernized and moved to drivers/pinctrl. --- arch/blackfin/kernel/bfin_gpio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 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/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c index a017359c1826..7a91cc6ea4b2 100644 --- a/arch/blackfin/kernel/bfin_gpio.c +++ b/arch/blackfin/kernel/bfin_gpio.c @@ -11,6 +11,8 @@ #include #include #include +#include +/* FIXME: consumer API required for gpio_set_value() etc, get rid of this */ #include #include @@ -1197,7 +1199,7 @@ static struct gpio_chip bfin_chip = { static int __init bfin_gpiolib_setup(void) { - return gpiochip_add(&bfin_chip); + return gpiochip_add_data(&bfin_chip, NULL); } arch_initcall(bfin_gpiolib_setup); #endif