From: Henrique de Moraes Holschuh Date: Tue, 15 Dec 2009 23:51:06 +0000 (-0200) Subject: thinkpad-acpi: sync input device EV_SW initial state X-Git-Tag: v2.6.33-rc1~47^2~11^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d89a727aff649f6768f7a34ee57f031ebf8bab4c;p=pandora-kernel.git thinkpad-acpi: sync input device EV_SW initial state Before we register the input device, sync the input layer EV_SW state through a call to input_report_switch(), to avoid issuing a gratuitous event for the initial state of these switches. This fixes some annoyances caused by the interaction with rfkill and EV_SW SW_RFKILL_ALL events. Reported-by: Kevin Locke Signed-off-by: Henrique de Moraes Holschuh Cc: Alan Jenkins Cc: Johannes Berg Cc: Dmitry Torokhov Signed-off-by: Len Brown --- Reading git-diff-tree failed