From: Anisse Astier Date: Fri, 14 Oct 2011 09:13:41 +0000 (+0200) Subject: asus-laptop: pega_accel - Report accelerometer orientation change through udev X-Git-Tag: next-20111101~95^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b93f82816c9ee4868c5aa1c8e06259233916d988;p=karo-tx-linux.git asus-laptop: pega_accel - Report accelerometer orientation change through udev Signed-off-by: Anisse Astier Signed-off-by: Corentin Chary Signed-off-by: Matthew Garrett --- diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index 012c44d38d48..05c0e594c036 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/drivers/platform/x86/asus-laptop.c @@ -1342,6 +1342,14 @@ static void asus_acpi_notify(struct acpi_device *device, u32 event) } return ; } + + /* Accelerometer "coarse orientation change" event */ + if (asus->pega_accel_poll && event == 0xEA) { + kobject_uevent(&asus->pega_accel_poll->input->dev.kobj, + KOBJ_CHANGE); + return ; + } + asus_input_notify(asus, event); }