aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-05-10 11:35:02 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2012-05-20 11:27:02 -0400
commit664dd0665ef18462b7fc62dd8bbb3ad5d6e5a7de (patch)
tree1b3dcacdb7b57ecfd3fd378eef189cf26e30d0c2
parent6fa4b9d802610116adf4b89c2f9bd155829aafd3 (diff)
mfd: Fix lm3533 regmap_update_bits() call
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>
-rw-r--r--drivers/mfd/lm3533-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/lm3533-core.c b/drivers/mfd/lm3533-core.c
index d6705431c897..d11c891e4a4d 100644
--- a/drivers/mfd/lm3533-core.c
+++ b/drivers/mfd/lm3533-core.c
@@ -126,7 +126,7 @@ int lm3533_update(struct lm3533 *lm3533, u8 reg, u8 val, u8 mask)
126 126
127 dev_dbg(lm3533->dev, "update [%02x]: %02x/%02x\n", reg, val, mask); 127 dev_dbg(lm3533->dev, "update [%02x]: %02x/%02x\n", reg, val, mask);
128 128
129 ret = regmap_update_bits(lm3533->regmap, reg, val, mask); 129 ret = regmap_update_bits(lm3533->regmap, reg, mask, val);
130 if (ret < 0) { 130 if (ret < 0) {
131 dev_err(lm3533->dev, "failed to update register %02x: %d\n", 131 dev_err(lm3533->dev, "failed to update register %02x: %d\n",
132 reg, ret); 132 reg, ret);