public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Éric Piel" <eric.piel@tremplin-utc.net>
To: Samu Onkalo <samu.p.onkalo@nokia.com>,
	Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] LIS3LV02D: axis remap and resource setup / release
Date: Mon, 05 Oct 2009 10:25:20 +0200	[thread overview]
Message-ID: <4AC9AD70.2040708@tremplin-utc.net> (raw)
In-Reply-To: <1254727478-19802-2-git-send-email-samu.p.onkalo@nokia.com>

Op 05-10-09 09:24, Samu Onkalo schreef:
> Added possibility to remap axes via platform data.
> Function pointers for resource setup and release purposes
> 
> Signed-off-by: Samu Onkalo <samu.p.onkalo@nokia.com>
Acked-by: Éric Piel <eric.piel@tremplin-utc.net>



> ---
>  include/linux/lis3lv02d.h |   12 ++++++++++++
>  1 files changed, 12 insertions(+), 0 deletions(-)
> 
> diff --git a/include/linux/lis3lv02d.h b/include/linux/lis3lv02d.h
> index dbe0702..5a809f6 100644
> --- a/include/linux/lis3lv02d.h
> +++ b/include/linux/lis3lv02d.h
> @@ -43,6 +43,18 @@ struct lis3lv02d_platform_data {
>  #define LIS3_WAKEUP_Z_HI	(1 << 5)
>  	unsigned char wakeup_flags;
>  	unsigned char wakeup_thresh;
> +#define LIS3_NO_MAP		0
> +#define LIS3_DEV_X		1
> +#define LIS3_DEV_Y		2
> +#define LIS3_DEV_Z		3
> +#define LIS3_INV_DEV_X	       -1
> +#define LIS3_INV_DEV_Y	       -2
> +#define LIS3_INV_DEV_Z	       -3
> +	s8 axis_x;
> +	s8 axis_y;
> +	s8 axis_z;
> +	int (*setup_resources)(void);
> +	int (*release_resources)(void);
>  };
>  
>  #endif /* __LIS3LV02D_H_ */


  parent reply	other threads:[~2009-10-05  8:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-05  7:24 [PATCH 0/2 try 2] LIS3LV02D I2C driver Samu Onkalo
2009-10-05  7:24 ` [PATCH 1/2] LIS3LV02D: axis remap and resource setup / release Samu Onkalo
2009-10-05  7:24   ` [PATCH 2/2] LIS3LV02D: I2C support Samu Onkalo
2009-10-05  8:25     ` Éric Piel
2009-10-05  8:25   ` Éric Piel [this message]
2009-10-05  8:25 ` [PATCH 0/2 try 2] LIS3LV02D I2C driver Éric Piel

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=4AC9AD70.2040708@tremplin-utc.net \
    --to=eric.piel@tremplin-utc.net \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=samu.p.onkalo@nokia.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox