]> git.baikalelectronics.ru Git - kernel.git/commit
Input: add KEY_RFKILL
authorMatthew Garrett <mjg@redhat.com>
Wed, 17 Feb 2010 20:21:45 +0000 (12:21 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 18 Feb 2010 10:08:16 +0000 (02:08 -0800)
commit6bb81905279e9246603a79b509458480c6d364be
tree33de1f771f1d7bb4a5917004239af44a15f20e68
parent856af798f5c5a982a03d2f3f56ea80aa50788598
Input: add KEY_RFKILL

Most laptops have keys that are intended to toggle all device state, not
just wifi. These are currently generally mapped to KEY_WLAN. As a result,
rfkill will only kill or enable wifi in response to the key press. This
confuses users and can make it difficult for them to enable bluetooth
and wwan devices.

This patch adds a new keycode, KEY_RFKILL. It indicates that the system
should toggle the state of all rfkillable devices.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
include/linux/input.h