projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b14821
)
iio: magnetometer: mmc35240: Fix SET/RESET mask
author
Daniel Baluta
<daniel.baluta@intel.com>
Tue, 14 Jul 2015 14:56:53 +0000
(17:56 +0300)
committer
Jonathan Cameron
<jic23@kernel.org>
Sun, 19 Jul 2015 10:53:36 +0000
(11:53 +0100)
This fixes setting the SET/RESET bit in the REG_CTRL0
register.
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/mmc35240.c
patch
|
blob
|
history
diff --git
a/drivers/iio/magnetometer/mmc35240.c
b/drivers/iio/magnetometer/mmc35240.c
index 36a4b53e618b40d9566c655eb3ee84adab0cd269..e9dfa0e268267a1b4da854743e281bf3a31f8b8b 100644
(file)
--- a/
drivers/iio/magnetometer/mmc35240.c
+++ b/
drivers/iio/magnetometer/mmc35240.c
@@
-202,8
+202,8
@@
static int mmc35240_hw_set(struct mmc35240_data *data, bool set)
coil_bit = MMC35240_CTRL0_RESET_BIT;
return regmap_update_bits(data->regmap, MMC35240_REG_CTRL0,
- MMC35240_CTRL0_REFILL_BIT,
- coil_bit);
+ coil_bit, coil_bit);
+
}
static int mmc35240_init(struct mmc35240_data *data)