Thread (3 messages) flat view 3 messages, 2 authors, 2013-01-16

[PATCH] OMAP: omap4-panda: add WiLink shared transport power functions

From: Luciano Coelho <hidden>
Date: 2013-01-16 21:32:06
Also in: linux-omap, lkml

On Wed, 2013-01-16 at 19:10 -0200, Fabio Estevam wrote:
On Wed, Jan 16, 2013 at 6:34 PM, Luciano Coelho [off-list ref] wrote:
quoted
+static int wilink_st_init(void)
+{
+       int status;
+
+       status = gpio_request(GPIO_BT_EN, "kim");
+       if (status) {
+               pr_err("%s: failed to request gpio %d\n", __func__,
+                      GPIO_BT_EN);
+               return status;
+       }
+
+       status = gpio_direction_output(GPIO_BT_EN, 0);
+       if (status)
+               pr_err("%s: unable to configure gpio %d", __func__,
+                      GPIO_BT_EN);
+
You could use gpio_request_one() instead.
Good point.  I'll send v2 using this instead:

gpio_request_one(GPIO_BT_EN, GPIOF_OUT_INIT_LOW, "kim")

--
Luca.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help