diff options
author | Éric Piel <eric.piel@tremplin-utc.net> | 2009-12-14 21:01:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-15 11:53:36 -0500 |
commit | 4b5d95b3809bcd77599122494aa3f575cd6ab1b9 (patch) | |
tree | 1c3a0d267ec911353404e77e3cd4f01d3e930584 /drivers/hwmon/lis3lv02d.h | |
parent | bc62c1471773fc32adcfc05100abd16fa2b6e126 (diff) |
lis3: fix show rate for 8 bits chips
Originally the driver was only targeted to 12bits sensors. When support
for 8bits sensors was added, some slight difference in the registers were
overlooked. This should fix it, both for initialization, and for
displaying the rate.
Reported-by: Kalhan Trisal <kalhan.trisal@intel.com>
Reported-by: Christoph Plattner <christoph.plattner@gmx.at>
Tested-by: Christoph Plattner <christoph.plattner@gmx.at>
Tested-by: Samu Onkalo <samu.p.onkalo@nokia.com>
Signed-off-by: Éric Piel <eric.piel@tremplin-utc.net>
Signed-off-by: Samu Onkalo <samu.p.onkalo@nokia.com>
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 'drivers/hwmon/lis3lv02d.h')
-rw-r--r-- | drivers/hwmon/lis3lv02d.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/lis3lv02d.h b/drivers/hwmon/lis3lv02d.h index 2431c5199534..c6ae507e4f1e 100644 --- a/drivers/hwmon/lis3lv02d.h +++ b/drivers/hwmon/lis3lv02d.h | |||
@@ -107,6 +107,7 @@ enum lis3lv02d_ctrl1 { | |||
107 | CTRL1_DF1 = 0x20, | 107 | CTRL1_DF1 = 0x20, |
108 | CTRL1_PD0 = 0x40, | 108 | CTRL1_PD0 = 0x40, |
109 | CTRL1_PD1 = 0x80, | 109 | CTRL1_PD1 = 0x80, |
110 | CTRL1_DR = 0x80, /* Data rate on 8 bits */ | ||
110 | }; | 111 | }; |
111 | enum lis3lv02d_ctrl2 { | 112 | enum lis3lv02d_ctrl2 { |
112 | CTRL2_DAS = 0x01, | 113 | CTRL2_DAS = 0x01, |