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)
commit3405addd220a0cf2e3a8ffb9051afe766e5f52e8
treeef19c5e5b155424fc50f131038eeb2abf27c7d24
parentc5713004b304e89c8c5117d8f226d5a1603571dc
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