diff options
author | Samu Onkalo <samu.p.onkalo@nokia.com> | 2010-10-22 07:57:28 -0400 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2010-10-25 14:11:38 -0700 |
commit | ed37d7f619648bf1a3ac136e80d2d0d647734eb3 (patch) | |
tree | 5a52e613fca43ac8e9e8c60140591b29255f121f /drivers/hwmon/lis3lv02d_i2c.c | |
parent | 2a7fade7e03a7c773f91e2e5ff26ad6fafda5a9f (diff) | |
download | blackbird-op-linux-ed37d7f619648bf1a3ac136e80d2d0d647734eb3.tar.gz blackbird-op-linux-ed37d7f619648bf1a3ac136e80d2d0d647734eb3.zip |
hwmon: lis3: restore axis enabled bits
All axis enable bits are set to 0 at module remove.
Restore reset default value at init.
Signed-off-by: Samu Onkalo <samu.p.onkalo@nokia.com>
Acked-by: Eric Piel <eric.piel@tremplin-utc.net>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/lis3lv02d_i2c.c')
-rw-r--r-- | drivers/hwmon/lis3lv02d_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/lis3lv02d_i2c.c b/drivers/hwmon/lis3lv02d_i2c.c index ec35c87819c0..c1e7420cf77d 100644 --- a/drivers/hwmon/lis3lv02d_i2c.c +++ b/drivers/hwmon/lis3lv02d_i2c.c @@ -83,7 +83,7 @@ static int lis3_i2c_init(struct lis3lv02d *lis3) if (ret < 0) return ret; - reg |= CTRL1_PD0; + reg |= CTRL1_PD0 | CTRL1_Xen | CTRL1_Yen | CTRL1_Zen; return lis3->write(lis3, CTRL_REG1, reg); } |