Message ID | 20170208135141.2105-2-drake@endlessm.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Andy Shevchenko |
Headers | show |
On Wed, Feb 08, 2017 at 07:51:41AM -0600, Daniel Drake wrote: > From: Chris Chiu <chiu@endlessm.com> > > Now that we have informed the firmware that the RF Button driver is > active, laptops such as the Acer TravelMate P238-M will generate > a WMI key event with code 0x86 when the Fn+F3 airplane mode key is > pressed. > > Add this keycode to the table so that it is converted to an appropriate > input event. > > Signed-off-by: Chris Chiu <chiu@endlessm.com> > Signed-off-by: Daniel Drake <drake@endlessm.com> Reviewed-by: Lee, Chun-Yi <jlee@suse.com> Thanks for your patches! Joey Lee > --- > drivers/platform/x86/acer-wmi.c | 1 + > 1 file changed, 1 insertion(+) > > v3: split off this change from the original patch > > diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c > index 3795d3f..0568c1a 100644 > --- a/drivers/platform/x86/acer-wmi.c > +++ b/drivers/platform/x86/acer-wmi.c > @@ -128,6 +128,7 @@ static const struct key_entry acer_wmi_keymap[] __initconst = { > {KE_KEY, KEY_TOUCHPAD_OFF, {KEY_TOUCHPAD_OFF} }, > {KE_IGNORE, 0x83, {KEY_TOUCHPAD_TOGGLE} }, > {KE_KEY, 0x85, {KEY_TOUCHPAD_TOGGLE} }, > + {KE_KEY, 0x86, {KEY_WLAN} }, > {KE_END, 0} > }; > > -- > 2.9.3 >
diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index 3795d3f..0568c1a 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c @@ -128,6 +128,7 @@ static const struct key_entry acer_wmi_keymap[] __initconst = { {KE_KEY, KEY_TOUCHPAD_OFF, {KEY_TOUCHPAD_OFF} }, {KE_IGNORE, 0x83, {KEY_TOUCHPAD_TOGGLE} }, {KE_KEY, 0x85, {KEY_TOUCHPAD_TOGGLE} }, + {KE_KEY, 0x86, {KEY_WLAN} }, {KE_END, 0} };