From patchwork Wed Dec 9 13:52:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 58138 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp681825lbb; Wed, 9 Dec 2015 05:52:24 -0800 (PST) X-Received: by 10.98.18.23 with SMTP id a23mr13120353pfj.84.1449669144107; Wed, 09 Dec 2015 05:52:24 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si12937085pfd.25.2015.12.09.05.52.23; Wed, 09 Dec 2015 05:52:24 -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 S1754812AbbLINwX (ORCPT + 4 others); Wed, 9 Dec 2015 08:52:23 -0500 Received: from mail-lb0-f179.google.com ([209.85.217.179]:35816 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754778AbbLINwW (ORCPT ); Wed, 9 Dec 2015 08:52:22 -0500 Received: by lbpu9 with SMTP id u9so30171161lbp.2 for ; Wed, 09 Dec 2015 05:52:21 -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=xSUexF0UaUiy3dVg297LpQrIoU2Hm5qYSenIT+Zitwk=; b=HQop7ZuMEoZ/Ux2v6kjBRcSmeOW0d2R/kZEg26lU6++RymknWytgqhLFIpKWL4aFrT J/gNX//PyvvgT4u4NzrD/WwNRQ99fsfy7PyLv/K+FJJqBBLr9IGmLR/JsjEMWvGLLUzK dArfzS9hY46V5y00u+aGN39LioJ2bY788ONylaaBXrMvpSmOaZ9rIwNQVG2SXrc6FBad XVS9hiBjFYEoTR4fh9slAW6H3EC/Q/KCmufM+KqaMshYfGzsKpWjte9YiKHq1Qyfauqj tU+eMGMOmj+3YN8sM1HK/iQObA8Dzj0OGR1MiT5cnU+XSv4LyPwlh9gZ8dca2fTNuL8J S9wg== 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=xSUexF0UaUiy3dVg297LpQrIoU2Hm5qYSenIT+Zitwk=; b=Q+Xoe16TVXvRiXzCSWzghb3OjTKMc4IcIMaYmMxKHPLv3Dxi7n63iwcmy6sEBgMisQ wkEMb6p5ukRirnT5txmuFtvS5zEtL3zKFHpYHKSO9Ea80gw2GhtiSDuBssvLmNKb9JsH MzNGdwnR3aeuK7sNzZxab9KxXr7HN9mFqCJFvE+8QqnU0Y1LXcA/aWRrIR7+pfEO9Ry0 owB4d4+beoXHiJ3uZwiPR1b/sFasTRiyHoLwFR0a6jPCCVa9AYaNEnnSwRlpVlf3SItZ sgtplTMKTVCFkQikwXVSShbxzSz2KUFlFXrwyKl0EUkQWAZvZQwFpWxg5itWwAjxFZpf Sehg== X-Gm-Message-State: ALoCoQnPWt73B1X38YsBbxedosVRIdnj1+aRYsnng0WDatdk6ocyeM2iWMeAao3skGRqa2RC+Sr9VzYnFPV5Fnr89bpP5j9laQ== X-Received: by 10.112.63.100 with SMTP id f4mr2449268lbs.85.1449669141629; Wed, 09 Dec 2015 05:52:21 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id w7sm1447650lbb.14.2015.12.09.05.52.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2015 05:52:20 -0800 (PST) From: Linus Walleij To: linux-gpio@vger.kernel.org, Johan Hovold , Alexandre Courbot , Michael Welling , Markus Pargmann Cc: Linus Walleij Subject: [PATCH 182/182] gpio: remove non-parametrized register functions Date: Wed, 9 Dec 2015 14:52:17 +0100 Message-Id: <1449669137-7414-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 This removes gpiochip_add() and of_mm_gpiochip_add() in favor of the *_data() functions that also take a pointer to driver state data. This way all new drivers will use the parametrized interface. Signed-off-by: Linus Walleij --- include/linux/gpio/driver.h | 4 ---- include/linux/of_gpio.h | 5 ----- 2 files changed, 9 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/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index 3334ba66f6a8..0c40dc6c6b21 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h @@ -201,10 +201,6 @@ extern const char *gpiochip_is_requested(struct gpio_chip *chip, /* add/remove chips */ extern int gpiochip_add_data(struct gpio_chip *chip, void *data); -static inline int gpiochip_add(struct gpio_chip *chip) -{ - return gpiochip_add_data(chip, NULL); -} extern void gpiochip_remove(struct gpio_chip *chip); extern struct gpio_chip *gpiochip_find(void *data, int (*match)(struct gpio_chip *chip, void *data)); diff --git a/include/linux/of_gpio.h b/include/linux/of_gpio.h index 54a23d6e4892..2204dc0e4493 100644 --- a/include/linux/of_gpio.h +++ b/include/linux/of_gpio.h @@ -54,11 +54,6 @@ extern int of_get_named_gpio_flags(struct device_node *np, extern int of_mm_gpiochip_add_data(struct device_node *np, struct of_mm_gpio_chip *mm_gc, void *data); -static inline int of_mm_gpiochip_add(struct device_node *np, - struct of_mm_gpio_chip *mm_gc) -{ - return of_mm_gpiochip_add_data(np, mm_gc, NULL); -} extern void of_mm_gpiochip_remove(struct of_mm_gpio_chip *mm_gc); extern int of_gpiochip_add(struct gpio_chip *gc);