Skip to content

Commit

Permalink
mfd: Fix lm3533 regmap_update_bits() call
Browse files Browse the repository at this point in the history
Current code calls regmap_update_bits() with mask and val arguments swapped.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Axel Lin authored and Samuel Ortiz committed May 20, 2012
1 parent 6fa4b9d commit 664dd06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/lm3533-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ int lm3533_update(struct lm3533 *lm3533, u8 reg, u8 val, u8 mask)

dev_dbg(lm3533->dev, "update [%02x]: %02x/%02x\n", reg, val, mask);

ret = regmap_update_bits(lm3533->regmap, reg, val, mask);
ret = regmap_update_bits(lm3533->regmap, reg, mask, val);
if (ret < 0) {
dev_err(lm3533->dev, "failed to update register %02x: %d\n",
reg, ret);
Expand Down

0 comments on commit 664dd06

Please sign in to comment.