]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitbf315173359b2f3b8b8ccca4264815e91f30be12
treeeb922a86d595849df02c474e034c855d770abce0
parent50b776fc71c13663eb7434f634f2b796de5c9885
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