From patchwork Wed Dec 9 13:40:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 58098 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp675278lbb; Wed, 9 Dec 2015 05:40:23 -0800 (PST) X-Received: by 10.66.228.225 with SMTP id sl1mr7966756pac.63.1449668423643; Wed, 09 Dec 2015 05:40:23 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hm2si12792065pac.186.2015.12.09.05.40.23; Wed, 09 Dec 2015 05:40:23 -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 S1754287AbbLINkW (ORCPT + 4 others); Wed, 9 Dec 2015 08:40:22 -0500 Received: from mail-lf0-f43.google.com ([209.85.215.43]:35865 "EHLO mail-lf0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752045AbbLINkV (ORCPT ); Wed, 9 Dec 2015 08:40:21 -0500 Received: by lfs39 with SMTP id 39so34603981lfs.3 for ; Wed, 09 Dec 2015 05:40:20 -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=YFi/THFSXA+Ztzk7Use8qUJ7hWeefKTM02OWp/MSoCg=; b=xocLugglxA3FNVORuR5bemtjECu/B4XZ6TYBZi+18deG1DDpbJ9+5V5nFrkZJeyXkl jNn3TwD6hqUxbYPsSFyhFisGeuNm4VgYiFbD5OrXCT2JBqzf+6qYx7M8r425FruCV+RZ fYhf8/WwX6PqwVW2emlFLiGiwBquK+1KiBSC9NSGlY7QX9k71jxT3PMQQr3XGncmf47L rO2IWUGfKDR0tUW7gZyMocpaRBH6qIVO7ObAVdIESixmiQcgihJv7oFQZcUSXYbIM8wr m/4R/V4U67JnAOP61ZUoFPbKO3U7aIenEH++j16M/VBq6ELi6ib4UyGhOzZnsyg09LfC SV4g== 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=YFi/THFSXA+Ztzk7Use8qUJ7hWeefKTM02OWp/MSoCg=; b=j+NRP5eYENPbZhgzleMnQSAXejYf3K+i2wiHEwS9blpSHeXaBZCA2ZiOp3KRJ8t4Uj JXhvv5eUggXrQjvDTIk6/lLLHtlRL7zhmyj/7R3a1V1mqSDmwE/iz5I6yoOeVjZ/BUGY 0SCeF7NFslWnIlTiVgU6DH6EcfEzbCjwzsGNwPWHPLd0EhBdpw3NJRcERFU3qTi1ZgJQ eMlB3R+oJVULrrCb1xmvMPq4y664COgWtNCbh/MF7LjXFIIOsa4cmp7PfX4Ga7QtU10G a6A72dLiVxnizqHRmzacNSj+WzP+Zcaj9ChKGc4LLu6qQ4AsVn9WlhjtIV5msmDUgmgH gVmw== X-Gm-Message-State: ALoCoQlgKkox2EiNeK/MKj1ZrF/A88hF/d7V7fXAj80Q4ZB+LU8itK5D9a+IDWEUsuK95RE792CEjL5+ZVTTdC+rMfnjIm5AKA== X-Received: by 10.25.43.138 with SMTP id r132mr2254719lfr.103.1449668420549; Wed, 09 Dec 2015 05:40:20 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id zm10sm1432158lbb.49.2015.12.09.05.40.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2015 05:40:19 -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 142/182] MIPS: txx9: rbtx4938: switch to gpiochip_add_data() Date: Wed, 9 Dec 2015 14:40:16 +0100 Message-Id: <1449668416-4785-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. This one needs to include both and since it is using both the driver and consumer interface, and looks like one of those cases where the gpio implementations should be kept local to this file. --- arch/mips/txx9/rbtx4938/setup.c | 3 ++- 1 file changed, 2 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/mips/txx9/rbtx4938/setup.c b/arch/mips/txx9/rbtx4938/setup.c index c9afd05020e0..54de66837103 100644 --- a/arch/mips/txx9/rbtx4938/setup.c +++ b/arch/mips/txx9/rbtx4938/setup.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include @@ -335,7 +336,7 @@ static void __init rbtx4938_mtd_init(void) static void __init rbtx4938_arch_init(void) { - gpiochip_add(&rbtx4938_spi_gpio_chip); + gpiochip_add_data(&rbtx4938_spi_gpio_chip, NULL); rbtx4938_pci_setup(); rbtx4938_spi_init(); }