Thread (2 messages) 2 messages, 2 authors, 2013-09-20

[PATCH 5/7] staging: media/lirc: switch to use gpiolib

From: Linus Walleij <hidden>
Date: 2013-09-20 19:28:04
Also in: linux-gpio

On Fri, Sep 13, 2013 at 2:15 PM, Krzysztof Halasa [off-list ref] wrote:
Linus Walleij [off-list ref] writes:
quoted
+++ b/drivers/staging/media/lirc/lirc_serial.c
@@ -839,6 +839,16 @@ static int lirc_serial_probe(struct platform_device *dev)
 {
      int i, nlow, nhigh, result;

+#ifdef CONFIG_LIRC_SERIAL_NSLU2
+     /* This GPIO is used for a LED on the NSLU2 */
+     result = devm_gpio_request(dev, NSLU2_LED_GRN, "lirc-serial");
Will this succeed with the LED driver already loaded? Should the user
unload it first?
Hm if this driver should use this as a LED it needs to register
a trigger for that GPIO LED instead. A GPIO can not be used by
two consumers at the same time...

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help