regmap: Implement dev_get_regmap()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 8 May 2012 16:44:40 +0000 (17:44 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 8 May 2012 17:19:15 +0000 (18:19 +0100)
commit72b39f6f2b5a6b0beff14b80bed9756f151218a9
treec5e2688207b1c796413debfb1936ededf4493edc
parent851960ba7cb38a6a108d102e4c8b0ab702972e22
regmap: Implement dev_get_regmap()

Use devres to implement dev_get_regmap(). This should mean that in almost
all cases devices wishing to take advantage of framework features based on
regmap shouldn't need to explicitly pass the regmap into the framework.
This simplifies device setup a bit.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/internal.h
drivers/base/regmap/regmap.c
include/linux/regmap.h