]> git.karo-electronics.de Git - linux-beck.git/commit
regmap: allow regmap instances to be named
authorStephen Warren <swarren@nvidia.com>
Wed, 4 Apr 2012 21:48:29 +0000 (15:48 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 10 Apr 2012 09:31:41 +0000 (10:31 +0100)
commitd3c242e1f22f5dfed009296ee45ce896153f0b53
tree074bd0d53a1439e7201639d0acdeeedf5b3f0232
parentdd775ae2549217d3ae09363e3edb305d0fa19928
regmap: allow regmap instances to be named

Some devices have multiple separate register regions. Logically, one
regmap would be created per region. One issue that prevents this is that
each instance will attempt to create the same debugfs files. Avoid this
by allowing regmaps to be named, and use the name to construct the
debugfs directory name.

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