mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-18 06:15:12 +00:00
ideapad: generate valid key event only
Otherwise will generate KEY_UNKNOWN on un-listed vpc event, which means nothing and is hard for user to report the detail of the event. Signed-off-by: Ike Panhc <ike.pan@canonical.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
This commit is contained in:
parent
a5c3892f56
commit
20a769c1c6
@ -784,6 +784,10 @@ static void ideapad_acpi_notify(struct acpi_device *adevice, u32 event)
|
|||||||
case 9:
|
case 9:
|
||||||
ideapad_sync_rfk_state(priv);
|
ideapad_sync_rfk_state(priv);
|
||||||
break;
|
break;
|
||||||
|
case 13:
|
||||||
|
case 6:
|
||||||
|
ideapad_input_report(priv, vpc_bit);
|
||||||
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
ideapad_backlight_notify_brightness(priv);
|
ideapad_backlight_notify_brightness(priv);
|
||||||
break;
|
break;
|
||||||
@ -794,7 +798,7 @@ static void ideapad_acpi_notify(struct acpi_device *adevice, u32 event)
|
|||||||
ideapad_backlight_notify_power(priv);
|
ideapad_backlight_notify_power(priv);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ideapad_input_report(priv, vpc_bit);
|
pr_info("Unknown event: %lu\n", vpc_bit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user