All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59@srcf.ucam.org>
To: Anisse Astier <anisse@astier.eu>
Cc: Andy Ross <andy.ross@windriver.com>,
	linux-input@vger.kernel.org, platform-driver-x86@vger.kernel.org,
	Dmitry Torokhov <dtor@mail.ru>,
	Corentin Chary <corentin.chary@gmail.com>
Subject: Re: [RFC] Reporting "orientation changed" event
Date: Mon, 9 May 2011 19:06:19 +0100	[thread overview]
Message-ID: <20110509180619.GA8563@srcf.ucam.org> (raw)
In-Reply-To: <20110509195802.0389639d@destiny.ordissimo>

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.

-- 
Matthew Garrett | mjg59@srcf.ucam.org

      reply	other threads:[~2011-05-09 18:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-07 16:18 [RFC] Reporting "orientation changed" event Anisse Astier
2011-04-07 16:37 ` Bastien Nocera
2011-04-07 16:44   ` Anisse Astier
2011-04-07 17:01 ` Jonathan Cameron
2011-04-07 17:19   ` Anisse Astier
2011-05-09 14:38 ` Matthew Garrett
2011-05-09 15:37   ` Andy Ross
2011-05-09 15:47     ` Matthew Garrett
2011-05-09 15:59       ` Andy Ross
2011-05-09 16:30         ` Anisse Astier
2011-05-09 16:40         ` Matthew Garrett
2011-05-09 17:58           ` Anisse Astier
2011-05-09 18:06             ` Matthew Garrett [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110509180619.GA8563@srcf.ucam.org \
    --to=mjg59@srcf.ucam.org \
    --cc=andy.ross@windriver.com \
    --cc=anisse@astier.eu \
    --cc=corentin.chary@gmail.com \
    --cc=dtor@mail.ru \
    --cc=linux-input@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.