From: Samu Onkalo <samu.p.onkalo@nokia.com>
To: eric.piel@tremplin-utc.net
Cc: linux-kernel@vger.kernel.org, Samu Onkalo <samu.p.onkalo@nokia.com>
Subject: [PATCH 1/2] LIS3LV02D: axis remap and resource setup / release
Date: Mon, 5 Oct 2009 10:24:37 +0300 [thread overview]
Message-ID: <1254727478-19802-2-git-send-email-samu.p.onkalo@nokia.com> (raw)
In-Reply-To: <1254727478-19802-1-git-send-email-samu.p.onkalo@nokia.com>
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>
---
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_ */
--
1.5.6.3
next prev parent reply other threads:[~2009-10-05 7: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 ` Samu Onkalo [this message]
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 ` [PATCH 1/2] LIS3LV02D: axis remap and resource setup / release Éric Piel
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=1254727478-19802-2-git-send-email-samu.p.onkalo@nokia.com \
--to=samu.p.onkalo@nokia.com \
--cc=eric.piel@tremplin-utc.net \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®