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)
commit0be81727a48cc28c1219395f32da8ccc99d6c6d0
tree47d1fb52b367cb0fdd066c8c74849c2ed8eb4755
parentf02ae59b1230853693d09a1003075d671f1a6f7d
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