From: Henrique de Moraes Holschuh Date: Thu, 31 Jul 2008 13:53:57 +0000 (-0300) Subject: rfkill: query EV_SW states when rfkill-input (re)?connects to a input device X-Git-Tag: v2.6.27-rc2~2^2~24^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e28fbef0f330d7c1cade345eeae003d4e5d6070;p=pandora-kernel.git rfkill: query EV_SW states when rfkill-input (re)?connects to a input device Every time a new input device that is capable of one of the rfkill EV_SW events (currently only SW_RFKILL_ALL) is connected to rfkill-input, we must check the states of the input EV_SW switches and take action. Otherwise, we will ignore the initial switch state. We also need to re-check the states of the EV_SW switches after a device that was under an exclusive grab is released back to us, since we got no input events from that device while it was grabbed. Signed-off-by: Henrique de Moraes Holschuh Acked-by: Ivo van Doorn Cc: Dmitry Torokhov Signed-off-by: John W. Linville --- Reading git-diff-tree failed