]> git.baikalelectronics.ru Git - kernel.git/commit
net: rfkill: gpio: spinlock-safe GPIO access
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 16 Oct 2013 10:53:41 +0000 (13:53 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 28 Oct 2013 14:05:24 +0000 (15:05 +0100)
commit8926e01e89e838303d77525a8b8972b58ed3074f
tree47d1fb52b367cb0fdd066c8c74849c2ed8eb4755
parent8a485f227e09e64fe02f52b2033ab26391367324
net: rfkill: gpio: spinlock-safe GPIO access

This sets the direction of the gpio once when it's requested,
and uses the spinlock-safe gpio_set_state() to change the
state.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: Rhyland Klein <rklein@nvidia.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/rfkill/rfkill-gpio.c