diff options
Diffstat (limited to 'kernel/drivers/base/regmap/regmap-spmi.c')
-rw-r--r-- | kernel/drivers/base/regmap/regmap-spmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/base/regmap/regmap-spmi.c b/kernel/drivers/base/regmap/regmap-spmi.c index 7e58f6560..4a36e415e 100644 --- a/kernel/drivers/base/regmap/regmap-spmi.c +++ b/kernel/drivers/base/regmap/regmap-spmi.c @@ -142,7 +142,7 @@ static int regmap_spmi_ext_read(void *context, while (val_size) { len = min_t(size_t, val_size, 8); - err = spmi_ext_register_readl(context, addr, val, val_size); + err = spmi_ext_register_readl(context, addr, val, len); if (err) goto err_out; |