From 5814fc35e1837e30b82c3d57f41310d4c4c52824 Mon Sep 17 00:00:00 2001 From: Mattias Wallin Date: Mon, 13 Sep 2010 16:05:04 +0200 Subject: 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 Acked-by: Linus Walleij Reviewed-by: Mark Brown Signed-off-by: Samuel Ortiz --- drivers/mfd/ab8500-core.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers/mfd/ab8500-core.c') diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c index 4132b5395fc4..dbe1c93c1af3 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), -- cgit v1.2.2