From patchwork Wed Dec 9 13:42:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 58107 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp676628lbb; Wed, 9 Dec 2015 05:42:52 -0800 (PST) X-Received: by 10.98.75.83 with SMTP id y80mr12861121pfa.77.1449668572049; Wed, 09 Dec 2015 05:42:52 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u63si12822783pfa.181.2015.12.09.05.42.51; Wed, 09 Dec 2015 05:42:52 -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 S1751531AbbLINmv (ORCPT + 4 others); Wed, 9 Dec 2015 08:42:51 -0500 Received: from mail-lf0-f42.google.com ([209.85.215.42]:35198 "EHLO mail-lf0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751585AbbLINmu (ORCPT ); Wed, 9 Dec 2015 08:42:50 -0500 Received: by lfdl133 with SMTP id l133so34323590lfd.2 for ; Wed, 09 Dec 2015 05:42:49 -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=BxDdO5uHtYgp2GUBQxV2hEVRN4n5uU7MmZn+tfbAlHg=; b=GVfIZvQlmzeH2wo/tzQ7hOjS3+9QO24RjWu9EfG+oBjoPdZLWku/GwVOgM1sVDUVAR MWYQ8pvq44tX7Cvlz9uh4fhkrndiX377p32mbQfsKZHQc3BCkpLf7gwGapAzIXFnVGxJ BovQeonlnCOwQEXuok2wElPyCFnnq2Nh2smEN71DZkZGn97T1zoMWHdr/52URhemtiMs 12+PgyDIFFRnH97nS0bngyjKlf8uYScpwn0KPe+rUcwleSCXyGmHfm0M8xiUFuKXW+Dq YDcmwqINs6l08qgFNYxRYX//UpoAgF/UcAJ+yrCbdwjKAhk9UIROb18y7R5j4050QsuK q5vw== 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=BxDdO5uHtYgp2GUBQxV2hEVRN4n5uU7MmZn+tfbAlHg=; b=A+0aDfNl9OVy9fLW/pWeG1zbRzCv7ZdJBkFbHDFczON6ORqy0yfPVW1J+mfY9QuRBw PQaxxTv6MWV5uJab7hkLJAwIGBb4HlcT/zEUBETB3dmZEQfNATpF5F+modQ34LHrv47q PVyVugX5Z1qDI+wjwDuP10udvm6FPLbSzmWG9/0L2+kTEMZjqnaPlH6YIFd1wzKukiX/ S02+PDcYCir4sJ6TZcYHFoaF3gGALMt83Q6KEfcL9EiAf4s+oai/GIAKSkxK+w4SPevU o7sR7pTDuKjdbArnLdiwlSoHQlx1cZmhg5JbgSOxNWIfNROw5LVwz3ONqUZUX7bGGT20 j9rw== X-Gm-Message-State: ALoCoQnMP78m4xmBNM1/ZxlUTN3gZdRurZCmpOcuhim/rnEdMX4jurmsyqbQKSow2XLUfPBgjWpYPFLw4N+daf8L3Lt96LGbpw== X-Received: by 10.25.38.2 with SMTP id m2mr2323775lfm.113.1449668569273; Wed, 09 Dec 2015 05:42:49 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id wu10sm1439020lbb.44.2015.12.09.05.42.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2015 05:42:48 -0800 (PST) From: Linus Walleij To: linux-gpio@vger.kernel.org, Johan Hovold , Alexandre Courbot , Michael Welling , Markus Pargmann , Paul Mundt Cc: Linus Walleij , linux-sh@vger.kernel.org Subject: [PATCH 151/182] sh: x3proto-gpio: switch to gpiochip_add_data() Date: Wed, 9 Dec 2015 14:42:46 +0100 Message-Id: <1449668566-5356-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: Paul Mundt Cc: linux-sh@vger.kernel.org Signed-off-by: Linus Walleij --- SH people: please ACK this so I can take it through the GPIO tree. --- arch/sh/boards/mach-x3proto/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/sh/boards/mach-x3proto/gpio.c b/arch/sh/boards/mach-x3proto/gpio.c index 1fb2cbee25f2..cea88b0effa2 100644 --- a/arch/sh/boards/mach-x3proto/gpio.c +++ b/arch/sh/boards/mach-x3proto/gpio.c @@ -13,7 +13,7 @@ #include #include -#include +#include #include #include #include @@ -107,7 +107,7 @@ int __init x3proto_gpio_setup(void) if (unlikely(ilsel < 0)) return ilsel; - ret = gpiochip_add(&x3proto_gpio_chip); + ret = gpiochip_add_data(&x3proto_gpio_chip, NULL); if (unlikely(ret)) goto err_gpio;