From patchwork Wed Dec 9 13:37:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 58089 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp674016lbb; Wed, 9 Dec 2015 05:38:07 -0800 (PST) X-Received: by 10.98.79.206 with SMTP id f75mr13067467pfj.24.1449668287539; Wed, 09 Dec 2015 05:38:07 -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.38.07; Wed, 09 Dec 2015 05:38: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; 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 S1753900AbbLINiG (ORCPT + 4 others); Wed, 9 Dec 2015 08:38:06 -0500 Received: from mail-lb0-f172.google.com ([209.85.217.172]:35889 "EHLO mail-lb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751753AbbLINiG (ORCPT ); Wed, 9 Dec 2015 08:38:06 -0500 Received: by lbblt2 with SMTP id lt2so30246700lbb.3 for ; Wed, 09 Dec 2015 05:38:04 -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=aO5CcLRG+hn1c1LvBri+OaBnHv8hkIfFWw8NdXsoRnA=; b=PrQ9vhdh2gvLhrEqV2Kw2B2U41cZoi3ON/Bkp/UxWPk2nX9Tc7Uz79cVuM07VFbWks IO6vOGd+eujQJsWeHhz/ejoWxCz/weQVTZgf1fa4kRlO2zYQxPmSqsBuqN8DZQXzpySs 74H7pg6XnvdUSt4r3p09KZC0/Y9QIo4LBT6X8cTDdMG27JJKtaKc8ruo0gdfl0X8qePj 1SjuyRlW9yZY/t4/TVFttqvexdgi2NOnCKmkLwUlv8DwJZfw2uoK4EaFChxVIAhKI9xo knuq99cAL1pvKoTe9DeZq+cIpFRz1iTD1F3fLsAkTai2lPdVuX/MZmg0pAhLi3imZcdx 4ZMg== 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=aO5CcLRG+hn1c1LvBri+OaBnHv8hkIfFWw8NdXsoRnA=; b=h47EasViznhZxAPkrP4cMeQTOeMEw+423O2X47aPpxAF+syOHA2xb6fCdyZwzRF4xf qoMIr4d7g1i+ebGHBFhKe3Lp3m4LYvVx+OXvMoYaaQXeAuZr1JNE+Y23FljB8syc4gzW pjHmgdc3E5Nd7UJjmT/DId/9oEwCGoa5KkOhio2iwNwhHAdA99dPAvlxfnVu8tEIDC11 kjVxCICEwAouHldd8WC/zime4+HtUEEegOH7SaCVR1u41JMGAGnO8Rto6vboAeUfj9Hj vu3ZhY5ZcqmuAQyfpEjJoL2VvZjfhFo0YoD7d0Jet49TIB6deD6F0yc7/nSPln3C+c93 A1wQ== X-Gm-Message-State: ALoCoQkz8xwseSeO4q8FLqT9cefH7rHbyfv1O10zJ1ouE1F3bcwKqocTJ7r0reIUyutmHmcxWl/42AK3HjUoDZcxNjiULav2aQ== X-Received: by 10.112.166.33 with SMTP id zd1mr1977954lbb.113.1449668284668; Wed, 09 Dec 2015 05:38:04 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id i13sm1446052lfe.9.2015.12.09.05.38.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2015 05:38:03 -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 133/182] blackfin: extgpio: switch to gpiochip_add_data() Date: Wed, 9 Dec 2015 14:37:50 +0100 Message-Id: <1449668270-4255-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: consider cleaning this up and moving it to drivers/gpio at some point. Also GPIO drivers should be including to not knowing how is thought out. But please abstract it out if you find the time. --- arch/blackfin/mach-bf538/ext-gpio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 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/blackfin/mach-bf538/ext-gpio.c b/arch/blackfin/mach-bf538/ext-gpio.c index 471a9b184d5b..c878b57d29aa 100644 --- a/arch/blackfin/mach-bf538/ext-gpio.c +++ b/arch/blackfin/mach-bf538/ext-gpio.c @@ -116,9 +116,9 @@ static struct gpio_chip bf538_porte_chip = { static int __init bf538_extgpio_setup(void) { - return gpiochip_add(&bf538_portc_chip) | - gpiochip_add(&bf538_portd_chip) | - gpiochip_add(&bf538_porte_chip); + return gpiochip_add_data(&bf538_portc_chip, NULL) | + gpiochip_add_data(&bf538_portd_chip, NULL) | + gpiochip_add_data(&bf538_porte_chip, NULL); } arch_initcall(bf538_extgpio_setup);