regmap: allow regmap instances to be named
authorStephen Warren <swarren@nvidia.com>
Wed, 18 Apr 2012 05:38:20 +0000 (10:38 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 05:38:20 +0000 (10:38 +0530)
commit4a622eb223957ab0e0fdfc3bff9185a5f80000d3
treee52bb8d75401cc0dabc5f88f306032bd0c7fc3ff
parentc803972821aa3688a5002b34c488bad6e93b6a26
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>
cherry-picked form mainline d3c242e

Change-Id: Ia3301fb4d28645f1d3593e547f9409ce20c0acfe
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96508
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Conflicts:

drivers/base/regmap/regmap.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
drivers/base/regmap/internal.h
drivers/base/regmap/regmap-debugfs.c
drivers/base/regmap/regmap.c
include/linux/regmap.h