]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
greybus: gpio: refuse to set value of input pins
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 19 Mar 2015 15:55:22 +0000 (16:55 +0100)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 19 Mar 2015 16:30:38 +0000 (17:30 +0100)
commit7bfa0781406f9df6cb20ce5134faa19d34cb4e18
tree86d7802b2977754ceef44cfa0a04f81480c0ef7b
parent64d2f4e5f94a95b23532efcbc3c955b5086bd890
greybus: gpio: refuse to set value of input pins

Add warning and refuse to set output value for pin configured as input,
as the result of such an operation is undefined.

Remove incorrect todo-comment suggesting that the driver could
implicitly switch direction as part of the call.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/gpio.c