summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-05-10 23:35:02 +0800
committerSamuel Ortiz <sameo@linux.intel.com>2012-05-20 17:27:02 +0200
commit664dd0665ef18462b7fc62dd8bbb3ad5d6e5a7de (patch)
tree1b3dcacdb7b57ecfd3fd378eef189cf26e30d0c2 /drivers/mfd
parent6fa4b9d802610116adf4b89c2f9bd155829aafd3 (diff)
downloadop-kernel-dev-664dd0665ef18462b7fc62dd8bbb3ad5d6e5a7de.zip
op-kernel-dev-664dd0665ef18462b7fc62dd8bbb3ad5d6e5a7de.tar.gz
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>
Diffstat (limited to 'drivers/mfd')
-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 d670543..d11c891 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)
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);
OpenPOWER on IntegriCloud