Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Daniel Baluta and committed by
Jonathan Cameron
3ceaa2c2 8b14821a

+2 -2
+2 -2
drivers/iio/magnetometer/mmc35240.c
··· 202 202 coil_bit = MMC35240_CTRL0_RESET_BIT; 203 203 204 204 return regmap_update_bits(data->regmap, MMC35240_REG_CTRL0, 205 - MMC35240_CTRL0_REFILL_BIT, 206 - coil_bit); 205 + coil_bit, coil_bit); 206 + 207 207 } 208 208 209 209 static int mmc35240_init(struct mmc35240_data *data)