rfkill: query EV_SW states when rfkill-input (re)?connects to a input device
commit3cf68e3bb7011dd16896faecc8e570a04481ae31
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 11 Nov 2008 01:46:26 +0000 (10 23:46 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 11 Nov 2008 01:46:26 +0000 (10 23:46 -0200)
tree7b4403bf85cf103dd03e2c41ee8e6d60617bce29
parent79544373a5b8aa7d59f1601010f6127974e61417
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 <hmh@hmh.eng.br>
Cc: Ivo van Doorn <IvDoorn@gmail.com>
Cc: Dmitry Torokhov <dtor@mail.ru>
net/rfkill/rfkill-input.c