git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d038880
)
dell-laptop: Don't set sw_state from the query callback
author
Hans de Goede
<hdegoede@redhat.com>
Sun, 17 Nov 2013 13:00:20 +0000
(14:00 +0100)
committer
Matthew Garrett
<matthew.garrett@nebula.com>
Wed, 20 Nov 2013 23:50:48 +0000
(18:50 -0500)
The query callback should only update the hw_state, see the comment in
net/rfkill/core.c in rfkill_set_block, which is its only caller.
rfkill_set_block will modify the sw_state directly after calling query so
calling set_sw_state is an expensive NOP.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
No differences found