From patchwork Wed Dec 9 13:39:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 58095 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp675032lbb; Wed, 9 Dec 2015 05:39:58 -0800 (PST) X-Received: by 10.98.43.67 with SMTP id r64mr13038660pfr.3.1449668398249; Wed, 09 Dec 2015 05:39:58 -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.39.57; Wed, 09 Dec 2015 05:39:58 -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 S1754226AbbLINj5 (ORCPT + 4 others); Wed, 9 Dec 2015 08:39:57 -0500 Received: from mail-lb0-f176.google.com ([209.85.217.176]:34892 "EHLO mail-lb0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751673AbbLINj4 (ORCPT ); Wed, 9 Dec 2015 08:39:56 -0500 Received: by lbpu9 with SMTP id u9so29955773lbp.2 for ; Wed, 09 Dec 2015 05:39:55 -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=U5OL3xYDe+pTva7+HLU905tltq1+HmzDrEqpJjqmGlY=; b=JrbbTnFVL3svh/apqFFt1x0TpbP2SK70ipBranL5gAWGT8A1NLgl82cjsFD4gc5SlE 0P1VLgq0B6beCZ8+K4pp5VJbIKLnLSmRTCbtMEptujDzBYNeIdoYwKx2hKtiXeVeBc49 NVfK7tNqgGnJLJ/On/vsmiQESPKZnTJ8UTlTHf7cxW7uzucS+f884XXswN6f9GD3HQWa wWFF7Dd/m4IR329G7gzAbL0AYHsYjg0oKQwfXaQUs6N/31bd2EJrYIFvIrZ9TwZo0zFP rKuwG1BcnJwn86a1kiv4qGLKrWU+Q9J2717pcNSqoeBdcb29wqCPdYWn8iKZSTvA+UYn TyLA== 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=U5OL3xYDe+pTva7+HLU905tltq1+HmzDrEqpJjqmGlY=; b=D9QbDg8txthYjTHYQxx53PV2KLW6JJ2uoDFr2ax2exCJzoBjZdwfkPj2nj/UkerKBY A2Gr7pZUBUX7lSxTX+jQ9ECqdh7VBXoVdjXAK6cYm97Pc5owsRLz5sLYXigc9BzItT1y v0eEGCaJ+yq/IIzzouMeRHoLPvAiIcb+WKYHvlTBncdGGX+QML8uzn1Opm8NOJ8zYua5 1kILLOqa64g/Z3ULWB0GQLRpEzrRWAp3/kryT9GWJsEehSQGuJ52zItKWqRcZrVZ20iA oX9dfMuBMiRbkgKGdeoDzR2J6eeTPvqirhW25unx2VTN/nRmkxC48vUdW+vJVIYjSMXi TazA== X-Gm-Message-State: ALoCoQlO2qNgv6uPlWNztCprlWD3t9SrQQ4BYRtmCSIZAEt3Ny0Xem2aIKiD01o53c9ejPFCQWFr7vyVbO+UuTGfRZgwmvncGg== X-Received: by 10.112.168.106 with SMTP id zv10mr2410141lbb.127.1449668395512; Wed, 09 Dec 2015 05:39:55 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id sv10sm1406291lbb.46.2015.12.09.05.39.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2015 05:39:54 -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 139/182] MIPS: txx9: switch to gpiochip_add_data() Date: Wed, 9 Dec 2015 14:39:44 +0100 Message-Id: <1449668384-4634-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/kernel/gpio_txx9.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/kernel/gpio_txx9.c b/arch/mips/kernel/gpio_txx9.c index c6854d9df926..2cfde19b6893 100644 --- a/arch/mips/kernel/gpio_txx9.c +++ b/arch/mips/kernel/gpio_txx9.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include #include @@ -85,5 +85,5 @@ int __init txx9_gpio_init(unsigned long baseaddr, return -ENODEV; txx9_gpio_chip.base = base; txx9_gpio_chip.ngpio = num; - return gpiochip_add(&txx9_gpio_chip); + return gpiochip_add_data(&txx9_gpio_chip, NULL); }