aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/reservation.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-08-29 10:26:32 +0200
committerMark Brown <broonie@linaro.org>2013-08-29 13:32:40 +0100
commit194c753a214ba7f1497552dd530021884d164146 (patch)
treee8d9ab3aa7b2ad8160d7a77c077b999c453440ba /drivers/base/reservation.c
parentMerge remote-tracking branch 'regmap/topic/cache' into regmap-rbtree (diff)
downloadlinux-dev-194c753a214ba7f1497552dd530021884d164146.tar.xz
linux-dev-194c753a214ba7f1497552dd530021884d164146.zip
regmap: rbtree: Simplify adjacent node look-up
A register which is adjacent to a node will either be left to the first register or right to the last register. It will not be within the node's range, so there is no point in checking for each register cached by the node whether the new register is next to it. It is sufficient to check whether the register comes before the first register or after the last register of the node. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/base/reservation.c')
0 files changed, 0 insertions, 0 deletions