Skip to content

Commit

Permalink
iio: magnetometer: mmc35240: Fix SET/RESET mask
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Baluta authored and Jonathan Cameron committed Jul 19, 2015
1 parent 8b14821 commit 3ceaa2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/iio/magnetometer/mmc35240.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3ceaa2c

Please sign in to comment.