regmap: use rb_entry()
authorGeliang Tang <geliangtang@gmail.com>
Mon, 19 Dec 2016 14:40:25 +0000 (22:40 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 19 Dec 2016 15:42:26 +0000 (15:42 +0000)
commit671a911bb9aea07360cb253e98acb4b7e6fbdd07
tree0f29695b037d9c5dfaa38d625f420f211e6023b2
parentdaaadbf07433b15c452b2ff411a293b2ccd98e03
regmap: use rb_entry()

To make the code clearer, use rb_entry() instead of container_of() to
deal with rbtree.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regcache-rbtree.c
drivers/base/regmap/regmap.c