diff options
author | Mattias Wallin <mattias.wallin@stericsson.com> | 2010-09-13 16:05:04 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-10-29 00:29:25 +0200 |
commit | 5814fc35e1837e30b82c3d57f41310d4c4c52824 (patch) | |
tree | a1af93694c140cb5bf54aff2a194fc084d12d7fb /drivers/mfd/ab8500-core.c | |
parent | 38b340527aa44bb8d1b88ef1e5a4e26b27695c2b (diff) | |
download | linux-3.10-5814fc35e1837e30b82c3d57f41310d4c4c52824.tar.gz linux-3.10-5814fc35e1837e30b82c3d57f41310d4c4c52824.tar.bz2 linux-3.10-5814fc35e1837e30b82c3d57f41310d4c4c52824.zip |
mfd: AB8500 debugfs
This patch adds the possibility to read and write registers
via the debug_fs. It also adds ranges of registers sorted by bank
which makes it possible to read all defined registers in a bank.
Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/ab8500-core.c')
-rw-r--r-- | drivers/mfd/ab8500-core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c index 4132b5395fc..dbe1c93c1af 100644 --- a/drivers/mfd/ab8500-core.c +++ b/drivers/mfd/ab8500-core.c @@ -394,6 +394,11 @@ static struct resource ab8500_poweronkey_db_resources[] = { }; static struct mfd_cell ab8500_devs[] = { +#ifdef CONFIG_DEBUG_FS + { + .name = "ab8500-debug", + }, +#endif { .name = "ab8500-gpadc", .num_resources = ARRAY_SIZE(ab8500_gpadc_resources), |