Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp779953ybe; Fri, 6 Sep 2019 07:14:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzooO1nfHk17zoALjS6ndwoJfUjg57fQFlNobG1e4OIuc+VoFiCoh7qXRaaFVvC1Ck1F0KK X-Received: by 2002:a65:60d3:: with SMTP id r19mr8188364pgv.91.1567779241152; Fri, 06 Sep 2019 07:14:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567779241; cv=none; d=google.com; s=arc-20160816; b=iOJzM0I2U0cyGVY8c9DH1Zt3atcyYqSzT9VukGlRyPPtv6VMja0JPdghSF3UcQ93uy DlMUCdG6z2xxf5TL9XodoFJTFnyJzVxIDkAOOR+I/lXfP/rGHG8ttdXs1DXau+qiKxBx MHt1YXQmti5DjlFBB9z6XktV+M+Ml7oAe7QZzj/tdgm8W9YVm2f6Z8fcfGv7LJuEHki3 BL7Tr/onUuLdKZZcqCwcsH4azKd9yT7+n2EC0pxdh24BZloiRdBuZteT4FBv32qDyPvF aufUIrIVbbb2TiTuhUaftJGJuxck08Y4gKyHz19HSCMCS6mLlx87OPbtFRXsX5hrkdgw Gozw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=1t0rG2kjDuhdZvlrY5j1/ee1eYhX8tZp0ZeToidSTyc=; b=DDJIxZx6pc49Tkx2jhBO8+tBatIVYrm0g+fVCye2bdmOB+3TXHGDaSJabtcnv12xl+ HMRjsjkxFqEdJrsKy5SpYn+cKZplksZPQ5Wxw44QOiaJNrlBHw5PaWmqxz0XhWIHWQpx dzcR2r0nvUE4eRnftivArBZ/HYH0ATVc7LjLfsXAq4Fa7ZoW/QD1U7nnPiditbzuv3YH Tw/SzkerhpER1Phjv1Iv4Rxwbm2/hnJucB00hFtxwJdOvc5vS1wfLNatmYoPLE0/+ZW4 J5b0LZlhFFxXVrlnsZePwzN+4/S3oZb4eSmVF0SttsJUH/4FgBzvh/09vzeK/ujMVk2g UFoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q26si4599022pgt.233.2019.09.06.07.13.45; Fri, 06 Sep 2019 07:14:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391825AbfIFIpr (ORCPT + 99 others); Fri, 6 Sep 2019 04:45:47 -0400 Received: from xavier.telenet-ops.be ([195.130.132.52]:56182 "EHLO xavier.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391657AbfIFIpo (ORCPT ); Fri, 6 Sep 2019 04:45:44 -0400 Received: from ramsan ([84.194.98.4]) by xavier.telenet-ops.be with bizsmtp id y8lh2000105gfCL018lhBh; Fri, 06 Sep 2019 10:45:41 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1i69sC-0003N3-UY; Fri, 06 Sep 2019 10:45:40 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1i69sC-0005h6-TH; Fri, 06 Sep 2019 10:45:40 +0200 From: Geert Uytterhoeven To: Linus Walleij , Bartosz Golaszewski Cc: Rob Herring , Frank Rowand , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/4] gpio: of: Make of_gpio_simple_xlate() private Date: Fri, 6 Sep 2019 10:45:37 +0200 Message-Id: <20190906084539.21838-3-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190906084539.21838-1-geert+renesas@glider.be> References: <20190906084539.21838-1-geert+renesas@glider.be> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit 9a95e8d25a140ba9 ("gpio: remove etraxfs driver"), there are no more users of of_gpio_simple_xlate() outside gpiolib-of.c. All GPIO drivers that need it now rely on of_gpiochip_add() setting it up as the default translate function. Signed-off-by: Geert Uytterhoeven --- drivers/gpio/gpiolib-of.c | 6 +++--- include/linux/of_gpio.h | 11 ----------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 4c6b366cb7bd5cd0..fad3aad667558325 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -637,8 +637,9 @@ static int of_gpiochip_scan_gpios(struct gpio_chip *chip) * GPIO chips. This function performs only one sanity check: whether GPIO * is less than ngpios (that is specified in the gpio_chip). */ -int of_gpio_simple_xlate(struct gpio_chip *gc, - const struct of_phandle_args *gpiospec, u32 *flags) +static int of_gpio_simple_xlate(struct gpio_chip *gc, + const struct of_phandle_args *gpiospec, + u32 *flags) { /* * We're discouraging gpio_cells < 2, since that way you'll have to @@ -662,7 +663,6 @@ int of_gpio_simple_xlate(struct gpio_chip *gc, return gpiospec->args[0]; } -EXPORT_SYMBOL(of_gpio_simple_xlate); /** * of_mm_gpiochip_add_data - Add memory mapped GPIO chip (bank) diff --git a/include/linux/of_gpio.h b/include/linux/of_gpio.h index f9737dea9d1f945a..16967390a3fe3b12 100644 --- a/include/linux/of_gpio.h +++ b/include/linux/of_gpio.h @@ -61,10 +61,6 @@ static inline int of_mm_gpiochip_add(struct device_node *np, } extern void of_mm_gpiochip_remove(struct of_mm_gpio_chip *mm_gc); -extern int of_gpio_simple_xlate(struct gpio_chip *gc, - const struct of_phandle_args *gpiospec, - u32 *flags); - #else /* CONFIG_OF_GPIO */ /* Drivers may not strictly depend on the GPIO support, so let them link. */ @@ -77,13 +73,6 @@ static inline int of_get_named_gpio_flags(struct device_node *np, return -ENOSYS; } -static inline int of_gpio_simple_xlate(struct gpio_chip *gc, - const struct of_phandle_args *gpiospec, - u32 *flags) -{ - return -ENOSYS; -} - #endif /* CONFIG_OF_GPIO */ /** -- 2.17.1