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>
This commit is contained in:

committed by
Linus Torvalds

parent
539954120b
commit
a253aaef60
@@ -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;
|
||||
|
Reference in New Issue
Block a user