summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lis3lv02d.h
diff options
context:
space:
mode:
authorSamu Onkalo <samu.p.onkalo@nokia.com>2009-12-15 03:01:44 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-15 17:53:36 +0100
commita253aaef60a37bddfa84846353edeb62a6acf5b3 (patch)
tree758d470210df046bbc2ba3a7980fb366953f78ec /drivers/hwmon/lis3lv02d.h
parentlis3lv02d: remove calibaration functionality (diff)
downloadlinux-a253aaef60a37bddfa84846353edeb62a6acf5b3.tar.xz
linux-a253aaef60a37bddfa84846353edeb62a6acf5b3.zip
lis3: sysfs entry for setting chip measurement rate
It is possible to read position information at the chip measurement rate via sysfs. This patch adds possibility to configure chip measurement rate. Signed-off-by: Samu Onkalo <samu.p.onkalo@nokia.com> Signed-off-by: Éric Piel <Eric.Piel@tremplin-utc.net> Cc: Pavel Machek <pavel@ucw.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--drivers/hwmon/lis3lv02d.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hwmon/lis3lv02d.h b/drivers/hwmon/lis3lv02d.h
index 1e9fb03dcd59..f73c78603732 100644
--- a/drivers/hwmon/lis3lv02d.h
+++ b/drivers/hwmon/lis3lv02d.h
@@ -208,6 +208,8 @@ struct lis3lv02d {
int (*write) (struct lis3lv02d *lis3, int reg, u8 val);
int (*read) (struct lis3lv02d *lis3, int reg, u8 *ret);
+ int *odrs; /* Supported output data rates */
+ u8 odr_mask; /* ODR bit mask */
u8 whoami; /* indicates measurement precision */
s16 (*read_data) (struct lis3lv02d *lis3, int reg);
int mdps_max_val;