summaryrefslogtreecommitdiffstats
path: root/drivers/iio/magnetometer
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@intel.com>2015-07-14 17:56:53 +0300
committerJonathan Cameron <jic23@kernel.org>2015-07-19 11:53:36 +0100
commit3ceaa2c207ccf6933affc8358c0a04beb93e9aa7 (patch)
treebe7c4811d9f4e1364ec9084371f3489558269525 /drivers/iio/magnetometer
parent8b14821a5c45e3472082c60723ca54cf2fe9c2f3 (diff)
downloadblackbird-op-linux-3ceaa2c207ccf6933affc8358c0a04beb93e9aa7.tar.gz
blackbird-op-linux-3ceaa2c207ccf6933affc8358c0a04beb93e9aa7.zip
iio: magnetometer: mmc35240: Fix SET/RESET mask
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>
Diffstat (limited to 'drivers/iio/magnetometer')
-rw-r--r--drivers/iio/magnetometer/mmc35240.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35240.c
index 36a4b53e618b..e9dfa0e26826 100644
--- 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)
OpenPOWER on IntegriCloud