rfkill: disentangle polling pause and suspend
authorJohannes Berg <johannes.berg@intel.com>
Wed, 20 Jan 2016 09:39:23 +0000 (10:39 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 24 Feb 2016 08:04:22 +0000 (09:04 +0100)
commitdd21dfc645d5dce0657af78761b3fa11a3a95398
tree22047c62a10871568f5fa9c17ee14342ebf670da
parentf06b7ab875037c3d99cd30a07c51caf34fbecb2c
rfkill: disentangle polling pause and suspend

When suspended while polling is paused, polling will erroneously
resume at resume time. Fix this by tracking pause and suspend in
separate state variable and adding the necessary checks.

Clarify the documentation on this as well.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/linux/rfkill.h
net/rfkill/core.c