mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] pinctrl: core: comment that pinctrl_add_gpio_range() is deprecated
@ 2024-03-04  7:05 Dan Carpenter
  2024-03-05 22:31 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2024-03-04  7:05 UTC (permalink / raw)
  To: Linus Walleij; +Cc: linux-gpio, linux-kernel, kernel-janitors

The pinctrl_add_gpio_range() function is deprecated add a comment so
people don't accidentally use it in new code.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
---
 drivers/pinctrl/core.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c
index ee56856cb80c..2d4412795ea4 100644
--- a/drivers/pinctrl/core.c
+++ b/drivers/pinctrl/core.c
@@ -412,6 +412,10 @@ static int pinctrl_get_device_gpio_range(struct gpio_chip *gc,
  * @pctldev: pin controller device to add the range to
  * @range: the GPIO range to add
  *
+ * DEPRECATED: Don't use this function in new code.  See section 2 of
+ * Documentation/devicetree/bindings/gpio/gpio.txt on how to bind pinctrl and
+ * gpio drivers.
+ *
  * This adds a range of GPIOs to be handled by a certain pin controller. Call
  * this to register handled ranges after registering your pin controller.
  */
-- 
2.43.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] pinctrl: core: comment that pinctrl_add_gpio_range() is deprecated
  2024-03-04  7:05 [PATCH] pinctrl: core: comment that pinctrl_add_gpio_range() is deprecated Dan Carpenter
@ 2024-03-05 22:31 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2024-03-05 22:31 UTC (permalink / raw)
  To: Dan Carpenter; +Cc: linux-gpio, linux-kernel, kernel-janitors

On Mon, Mar 4, 2024 at 8:05 AM Dan Carpenter <dan.carpenter@linaro.org> wrote:

> The pinctrl_add_gpio_range() function is deprecated add a comment so
> people don't accidentally use it in new code.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>

Thanks Dan,
patch applied!

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-05 22:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-04  7:05 [PATCH] pinctrl: core: comment that pinctrl_add_gpio_range() is deprecated Dan Carpenter
2024-03-05 22:31 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®