regmap: Add support for writing to regmap registers via debugfs
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Wed, 22 Feb 2012 12:43:50 +0000 (12:43 +0000)
committerSimone Willett <swillett@nvidia.com>
Sun, 15 Apr 2012 20:28:23 +0000 (13:28 -0700)
commit2fc61deda5ee36d299f46737db281242f7017f88
treea510e4877ae7b22d885371ded2f40ffb777a58fe
parent8f010007a636b19728dd504bdf986d13e416cc67
regmap: Add support for writing to regmap registers via debugfs

To enable writing to the regmap debugfs registers file users will
need to modify the source directly and #define REGMAP_ALLOW_WRITE_DEBUGFS.
The reason for this is that it is dangerous to expose this
functionality in general where clients could potentially be PMICs.

[A couple of minor style updates -- broonie]

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 09c6ecd394105c4864a0e409e181c9b1578c2a63)

Change-Id: Ia9408880e25d5060796ab79812a023def00b10bc
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96483
Reviewed-by: Automatic_Commit_Validation_User
drivers/base/regmap/regmap-debugfs.c