]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: rbtree-cache: Move cached rbnode handling into lookup function
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 27 Sep 2011 18:15:38 +0000 (20:15 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 28 Sep 2011 12:18:22 +0000 (13:18 +0100)
commitb1300fb1d3fd94505392f64c7997f39b5489276a
treeef19c5e5b155424fc50f131038eeb2abf27c7d24
parentb0b430e2a017c47b2fbbaadd754c7183062bf16f
regmap: rbtree-cache: Move cached rbnode handling into lookup function

Move the handling of the cached rbnode into regcache_rbtree_lookup. This allows
us to remove of some duplicated code sections in regcache_rbtree_read and
regcache_rbtree_write.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regcache-rbtree.c