From patchwork Wed Dec 9 13:35:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 58081 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp672610lbb; Wed, 9 Dec 2015 05:35:36 -0800 (PST) X-Received: by 10.66.192.42 with SMTP id hd10mr7807831pac.111.1449668136655; Wed, 09 Dec 2015 05:35:36 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id nx14si12797123pab.69.2015.12.09.05.35.36; Wed, 09 Dec 2015 05:35:36 -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 S1754253AbbLINfg (ORCPT + 4 others); Wed, 9 Dec 2015 08:35:36 -0500 Received: from mail-lf0-f49.google.com ([209.85.215.49]:34623 "EHLO mail-lf0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754214AbbLINff (ORCPT ); Wed, 9 Dec 2015 08:35:35 -0500 Received: by lffu14 with SMTP id u14so34377103lff.1 for ; Wed, 09 Dec 2015 05:35:34 -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=q4YIicWKEjdm46C/Ta3LorxUD9hc9fy6JNg6JvaP7vk=; b=VgzL8YMiYAoJK1qXHm8bf+06tQ5VlmU76ZWYNdcCnVG3FYwW/1BlyWtArkRJes8535 fXGMGnyEPA1ZlpWBYGQ0gwI4KDbHWzgZz3iDV6L6qkffj6KPS/qzG+xk29T6Wgqiw/Y2 O95i6RaTx2n4svp6Vw+f8knnndxJAGubqbtLn7Xg3iV0gMeocLueDUX1flc07qx33j54 lBD/kpKzEw+5SJrqdVqiRujCLT90R9LDdQtQj1P/AAiaPPxVS5kTkjUzCj0EqD7AphtO Q9u9nn6Df2gdGVqL8KMYAtqM1a5gFpDIbVoBf2/W/8mc8AftQIsPtY5U1UL5lrx7rao3 uhFw== 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=q4YIicWKEjdm46C/Ta3LorxUD9hc9fy6JNg6JvaP7vk=; b=EK3Cbl7AmMCHw88uVM+H4kw2/vr1uSEdi4B9KfqeE4YClpqX0SgaEr9rNFGZRXVENr AGtb+yAQ7+ZZgRtjocIcdxsyKfhPM3Fhsi1ictpcP9fkkybq8uaDyl6F5LKALvlsG/PI 05R0mR5FitCzdJONGzQgXAnM0y3ZodOuNqUNY4mJy9vwIoRyDwt+xyWy0XrHlNtlPinA gsYn5IBAIATMELkhLdiveehA4Yy0WMOPCGME91mrOfwOpqj5wKXU6hfMYvlVws9g1l+l uSlAFwfbZhMiuaiGyWRIlO0JRJm7zD6s9568Ndggq2IyWExl55WVkH3FnTeeWfbE6f88 M03Q== X-Gm-Message-State: ALoCoQmdWwe0Oe97fnBWlFDEalSr80FzAi0dwqrHdyeZK9obqRIBxFd5FyyLVzRlB0ymwHYxS1WYSHB8B9T3ndqprV2WzbXi3Q== X-Received: by 10.25.24.77 with SMTP id o74mr2251663lfi.5.1449668134248; Wed, 09 Dec 2015 05:35:34 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id n187sm1425161lfd.23.2015.12.09.05.35.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2015 05:35:33 -0800 (PST) From: Linus Walleij To: linux-gpio@vger.kernel.org, Johan Hovold , Alexandre Courbot , Michael Welling , Markus Pargmann , arm@kernel.org Cc: Linus Walleij Subject: [PATCH 125/182] ARM: imx: switch to gpiochip_add_data() Date: Wed, 9 Dec 2015 14:35:25 +0100 Message-Id: <1449668125-3775-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: arm@kernel.org Signed-off-by: Linus Walleij --- ARM SoC guys: please ACK this so I can take it through the GPIO tree. --- arch/arm/mach-imx/mach-mx27ads.c | 4 +++- 1 file changed, 3 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/arm/mach-imx/mach-mx27ads.c b/arch/arm/mach-imx/mach-mx27ads.c index eb1c3477c48a..f510c43981d3 100644 --- a/arch/arm/mach-imx/mach-mx27ads.c +++ b/arch/arm/mach-imx/mach-mx27ads.c @@ -13,6 +13,8 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ +#include +/* Needed for gpio_to_irq() */ #include #include #include @@ -243,7 +245,7 @@ static void __init mx27ads_regulator_init(void) vchip->ngpio = 1; vchip->direction_output = vgpio_dir_out; vchip->set = vgpio_set; - gpiochip_add(vchip); + gpiochip_add_data(vchip, NULL); platform_device_register_data(NULL, "reg-fixed-voltage", PLATFORM_DEVID_AUTO,