Message ID | 20110509195802.0389639d@destiny.ordissimo (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Mon, May 09, 2011 at 07:58:02PM +0200, Anisse Astier wrote: > diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c > index 2105b42..e23d555 100644 > --- a/drivers/platform/x86/asus-laptop.c > +++ b/drivers/platform/x86/asus-laptop.c > @@ -1337,6 +1337,13 @@ static void asus_acpi_notify(struct acpi_device *device, u32 event) > } > return ; > } > + > + /* Accelerometer "coarse orientation change" event */ > + if (asus->pega_accel && event == 0xEA) { > + kobject_uevent(&asus->pega_accel->dev.kobj, KOBJ_CHANGE); > + return ; > + } > + > asus_input_notify(asus, event); > } Precisely that.
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index 2105b42..e23d555 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/drivers/platform/x86/asus-laptop.c @@ -1337,6 +1337,13 @@ static void asus_acpi_notify(struct acpi_device *device, u32 event) } return ; } + + /* Accelerometer "coarse orientation change" event */ + if (asus->pega_accel && event == 0xEA) { + kobject_uevent(&asus->pega_accel->dev.kobj, KOBJ_CHANGE); + return ; + } + asus_input_notify(asus, event); }