OSDN Git Service

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>
Fri, 13 Apr 2012 10:29:19 +0000 (11:29 +0100)
commit4b5c0186e48c8d14fd7c38ff99b8d1b9aa475432
tree55c80e93f1ae158bed0798ca0354b043639e3bac
parent2690dfdb05abf3a8e11ff21ec12dbbe620a026fb
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