[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4AC9AD70.2040708@tremplin-utc.net>
Date: Mon, 05 Oct 2009 10:25:20 +0200
From: Éric Piel <eric.piel@...mplin-utc.net>
To: Samu Onkalo <samu.p.onkalo@...ia.com>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] LIS3LV02D: axis remap and resource setup / release
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@...ia.com>
Acked-by: Éric Piel <eric.piel@...mplin-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_ */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists