From: Alan Jenkins Date: Tue, 16 Jun 2009 13:53:24 +0000 (+0100) Subject: rfkill: rfkill_set_block() when suspended nitpick X-Git-Tag: v2.6.31-rc1~63^2~9^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fa20a7f60df0afceafbb8197b5d110507f42c72;p=pandora-kernel.git rfkill: rfkill_set_block() when suspended nitpick If we return after fiddling with the state, userspace will see the wrong state and rfkill_set_sw_state() won't work until the next call to rfkill_set_block(). At the moment rfkill_set_block() will always be called from rfkill_resume(), but this will change in future. Also, presumably the point of this test is to avoid bothering devices which may be suspended. If we don't want to call set_block(), we probably don't want to call query() either :-). Signed-off-by: Alan Jenkins Signed-off-by: John W. Linville --- Reading git-diff-tree failed