]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mfd: Fix val_len parameters for s5m-core regmap_raw_write
authorAxel Lin <axel.lin@gmail.com>
Tue, 14 Feb 2012 03:08:07 +0000 (11:08 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 6 Mar 2012 17:46:43 +0000 (18:46 +0100)
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>
drivers/mfd/s5m-core.c

index 8b8cf85256c11718fbe5b16e200dd5abf21ad595..578e12e7f679f3a541042f8acf38f157052b80be 100644 (file)
@@ -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);