]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Allow drivers to reinitialise the register cache at runtime
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 3 Dec 2011 17:06:20 +0000 (17:06 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 5 Dec 2011 13:17:36 +0000 (13:17 +0000)
commit794189f41cc09272704d83528205f6c02670a54c
treeeb922a86d595849df02c474e034c855d770abce0
parent70a7c6fec6150263c9d1519e593615434cf09d2c
regmap: Allow drivers to reinitialise the register cache at runtime

Sometimes the register map information may change in ways that drivers can
discover at runtime. For example, new revisions of a device may add new
registers. Support runtime discovery by drivers by allowing the register
cache to be reinitialised with a new function regmap_reinit_cache() which
discards the existing cache and creates a new one.

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