summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/adcxx.c
diff options
context:
space:
mode:
authorDylan Reid <dgreid@chromium.org>2014-01-25 00:40:39 +0100
committerMark Brown <broonie@linaro.org>2014-01-27 19:25:11 +0100
commit78ba73eecd2256790926859849801c0446766c0a (patch)
treebb8876ab01f0ab70ec7d754cf131fcc7a8384ced /drivers/hwmon/adcxx.c
parentMerge remote-tracking branch 'regmap/topic/ack' into regmap-next (diff)
downloadlinux-78ba73eecd2256790926859849801c0446766c0a.tar.xz
linux-78ba73eecd2256790926859849801c0446766c0a.zip
regmap: cache: Handle stride > 1 in sync_block_raw_flush
regcache_sync_block_raw_flush takes the address of the base register and the address of one past the last register to write to. "count" is the number of registers in the range, not the number of bytes, it should be (end addr - start addr) / stride. Without accounting for strides greater than one, registers past the end might be synced or the writeable_reg callback at the beginning of _regmap_raw_write will fail and nothing will be written. Signed-off-by: Dylan Reid <dgreid@chromium.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/hwmon/adcxx.c')
0 files changed, 0 insertions, 0 deletions