From b93f82816c9ee4868c5aa1c8e06259233916d988 Mon Sep 17 00:00:00 2001 From: Anisse Astier Date: Fri, 14 Oct 2011 11:13:41 +0200 Subject: 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 --- drivers/platform/x86/asus-laptop.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'drivers/platform') diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index 012c44d38d4..05c0e594c03 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); } -- cgit v1.2.3-18-g5258