]> 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)
commitd5d780a3cc763e0b9ce75150f93e1a32962c32c6
treeeb922a86d595849df02c474e034c855d770abce0
parent11ddbd4e8eb79a612b8e212a351a843b3cc7733d
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