summaryrefslogtreecommitdiff
path: root/drivers/base/regmap/regmap.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-08-27 11:03:03 (GMT)
committerMark Brown <broonie@linaro.org>2013-08-27 15:23:00 (GMT)
commitb6752123ccef4eec3c70c20dbdfc05d1674319c5 (patch)
treeeac40c4ea69182004640ad13488c58e77c560ef8 /drivers/base/regmap/regmap.c
parentd8dfad3876e4386666b759da3c833d62fb8b2267 (diff)
downloadlinux-fsl-qoriq-b6752123ccef4eec3c70c20dbdfc05d1674319c5.tar.xz
regcache-rbtree: Fix reg_stride != 1
There are a couple of calculations, which convert between register addresses and block indices, in regcache_rbtree_sync() and regcache_rbtree_node_alloc() which assume that reg_stride is 1. This will break the rb cache for configurations which do not use a reg_stride of 1. Also rename 'base' in regcache_rbtree_sync() to 'start' to avoid confusion with 'base_reg'. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/base/regmap/regmap.c')
0 files changed, 0 insertions, 0 deletions