diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-02-14 11:08:07 +0800 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-03-06 18:46:43 +0100 |
commit | 113351b52b296afa91d829e880037ef91f0e96f5 (patch) | |
tree | d160aea1b1d59019d77d22458f0adc6db1fa1d82 /drivers/mfd | |
parent | d1b5c5e2351c5d30327f77226daab21ce9ef427f (diff) | |
download | lwn-113351b52b296afa91d829e880037ef91f0e96f5.tar.gz lwn-113351b52b296afa91d829e880037ef91f0e96f5.zip |
mfd: Fix val_len parameters for s5m-core regmap_raw_write
The val_len parameters for regmap_raw_write should be "count * sizeof(u8)"
(or simply "count") instead of "count * sizeof(u16)".
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/s5m-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/s5m-core.c b/drivers/mfd/s5m-core.c index 8b8cf85256c1..578e12e7f679 100644 --- a/drivers/mfd/s5m-core.c +++ b/drivers/mfd/s5m-core.c @@ -74,7 +74,7 @@ EXPORT_SYMBOL_GPL(s5m_reg_write); int s5m_bulk_write(struct s5m87xx_dev *s5m87xx, u8 reg, int count, u8 *buf) { - return regmap_raw_write(s5m87xx->regmap, reg, buf, count * sizeof(u16)); + return regmap_raw_write(s5m87xx->regmap, reg, buf, count); } EXPORT_SYMBOL_GPL(s5m_bulk_write); |