]> git.baikalelectronics.ru Git - kernel.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>
Fri, 13 Apr 2012 10:29:19 +0000 (11:29 +0100)
commit1360f22f2d57fdcc279c0ca82391773853e6aedf
tree55c80e93f1ae158bed0798ca0354b043639e3bac
parent6d8ba7646fb7daf4680d65e87787cbe776ac6b5e
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