Thread (33 messages) 33 messages, 9 authors, 2014-08-28

Re: [RFC PATCH 6/9] gpiolib: add API to get gpio desc and flags

From: Grant Likely <hidden>
Date: 2014-08-19 15:58:31
Also in: linux-acpi, lkml

On Mon, 18 Aug 2014 06:57:41 +0200, "Rafael J. Wysocki" [off-list ref] wrote:
On Sunday, August 17, 2014 12:43:38 PM Darren Hart wrote:
quoted
On 8/17/14, 6:00, "Grant Likely" [off-list ref] wrote:
quoted
quoted
+	/* Using device tree? */
+	if (IS_ENABLED(CONFIG_OF) && dev->of_node)
+		desc = of_find_gpio(dev, NULL, idx, flags);
of_find_gpio() doesn't exist.
Hrm... As of 3.16.0 (e64df3ebe8262c8203d1fe4f541e0241c3112c01)

$ git blame -L1455,1456 drivers/gpio/gpiolib.c
bae48da2 (Alexandre Courbot 2013-10-17 10:21:38 -0700 1455) static struct
gpio_desc *of_find_gpio(struct device *dev, const char *con_id,

Have we removed this in -next or something? (on the plane, will verify
upon landing)
In 3.17-rc1:

rafael@vostro:~/src/linux-pm> grep -r of_find_gpio *
drivers/gpio/gpiolib.c:static struct gpio_desc *of_find_gpio(struct device *dev, const char *con_id,
drivers/gpio/gpiolib.c:         desc = of_find_gpio(dev, con_id, idx, &lookupflags);
Weird, I don't know why I couldn't find it. I must have been on a
different branch. Sorry for the noise.

g.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help