From patchwork Wed Dec 9 13:39:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 58092 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp674776lbb; Wed, 9 Dec 2015 05:39:32 -0800 (PST) X-Received: by 10.98.66.93 with SMTP id p90mr12990088pfa.118.1449668372082; Wed, 09 Dec 2015 05:39:32 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3si12843442pfi.54.2015.12.09.05.39.31; Wed, 09 Dec 2015 05:39:32 -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 S1754660AbbLINja (ORCPT + 4 others); Wed, 9 Dec 2015 08:39:30 -0500 Received: from mail-lb0-f179.google.com ([209.85.217.179]:35710 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751673AbbLINj3 (ORCPT ); Wed, 9 Dec 2015 08:39:29 -0500 Received: by lbpu9 with SMTP id u9so29948294lbp.2 for ; Wed, 09 Dec 2015 05:39:28 -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=ZbuWQfM33F/SGx2hYwyjkrUw0ejn5djfWJ57Eg+dqgo=; b=xk4boast76JHSV+tbTCeLLese6bsWZbAiWFtjp6Cl/xcy+B8O3EeUTHZYs1/dUCWvk 2VNoj9ZOs+9Qe9o4xHFGYVch4v+YAtM/EHC8QuuBm7UQMOSoIxl1gVJkRIuFUGyhDwwZ mtW8SSa7AN7kIO+Ey1GJsN0KLbN/VcEIX+9/0jUTxlUOg+nr/2bhipUWShCpTyH7I8mF j/aJUtTBEzim77nBpjapHENw/0IfbN7EHLE6uX4+28H57BXWD0sUDbROplKUxcezr7JD pjvKtsyl+D44BAOVTF+Ys/T6gY5g9wVnjbvckSnh7ke002zgFIOj+d+APcWcc/PuDP6R BaWw== 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=ZbuWQfM33F/SGx2hYwyjkrUw0ejn5djfWJ57Eg+dqgo=; b=g1M1eKB4uLjF3iPBwo5RSFC8x2FbsHmOmtLIaV87ZZ+JPexig1vf3+rQG9uu84s8eO /jXy3ChoxSgDOaBBcwEy6dgWKgN15u81L0Sb114nx+HeYLhTL2oiaoy7TZ01woL1g332 BbF9mMUfj4y+Mi3O/mxgWVTdjcKsWFQJxLEuVOFCVEPStkl6y67RTY9zWkKIngH8IiaA /SpXePu6ZrcSm9PCcZYxD4HNTsTAC/ZHg7j2naOtLKXxArxtBynnbIHa7VcLgb3ipVMG P2OyjHp6xL12LZL8gix/W8Ct4HZ38mGwYMWrRNfjxAHWJpiF3HH5ZBqs85IZQIjR7vtD 8VEg== X-Gm-Message-State: ALoCoQmGpl2gOINx2PyJDCnL2Qpiuis2Jna7q+W7XbqyKY0M1JZX8bFZAMhCUvZnWrcvD6HbcqWv2MzsTtBFntxiReBAJmFJrw== X-Received: by 10.112.120.212 with SMTP id le20mr2041153lbb.134.1449668368275; Wed, 09 Dec 2015 05:39:28 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id mt2sm1422452lbc.9.2015.12.09.05.39.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2015 05:39:27 -0800 (PST) From: Linus Walleij To: linux-gpio@vger.kernel.org, Johan Hovold , Alexandre Courbot , Michael Welling , Markus Pargmann , Ralf Baechle Cc: Linus Walleij , linux-mips@linux-mips.org Subject: [PATCH 137/182] MIPS: bcm63xx: switch to gpiochip_add_data() Date: Wed, 9 Dec 2015 14:39:19 +0100 Message-Id: <1449668359-4540-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: Ralf Baechle Cc: linux-mips@linux-mips.org Signed-off-by: Linus Walleij --- Ralf: please ACK this so I can take it through the GPIO tree. BTW: would be nice if the MIPS GPIO drivers could move down to drivers/gpio in the long run. This should compile with just #include , I hope that works. --- arch/mips/bcm63xx/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/mips/bcm63xx/gpio.c b/arch/mips/bcm63xx/gpio.c index 468bc7b99cd3..7c256dadb166 100644 --- a/arch/mips/bcm63xx/gpio.c +++ b/arch/mips/bcm63xx/gpio.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include @@ -147,5 +147,5 @@ int __init bcm63xx_gpio_init(void) bcm63xx_gpio_chip.ngpio = bcm63xx_gpio_count(); pr_info("registering %d GPIOs\n", bcm63xx_gpio_chip.ngpio); - return gpiochip_add(&bcm63xx_gpio_chip); + return gpiochip_add_data(&bcm63xx_gpio_chip, NULL); }