diff options
author | Felipe Balbi <felipe.balbi@nokia.com> | 2010-03-12 11:29:11 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-21 00:21:32 +0400 |
commit | 7f7f9e2a5af9e30c6a0c6743ac874f67e2ef4b72 (patch) | |
tree | 3d7fae6e559868e3ac110b3973650198458a815e /drivers/usb/musb/musb_debug.h | |
parent | 6ddc6dae4ab559b648bc348e3a48e113e92ab4a2 (diff) | |
download | linux-7f7f9e2a5af9e30c6a0c6743ac874f67e2ef4b72.tar.xz |
usb: musb: add debugfs support
for now only a simple register dump entry (which can
be rather useful on debugging) and a way to start
test modes.
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/musb/musb_debug.h')
-rw-r--r-- | drivers/usb/musb/musb_debug.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_debug.h b/drivers/usb/musb/musb_debug.h index 9fc1db44c72c..d73afdbde3ee 100644 --- a/drivers/usb/musb/musb_debug.h +++ b/drivers/usb/musb/musb_debug.h @@ -59,4 +59,17 @@ static inline int _dbg_level(unsigned l) extern const char *otg_state_string(struct musb *); +#ifdef CONFIG_DEBUG_FS +extern int musb_init_debugfs(struct musb *musb); +extern void musb_exit_debugfs(struct musb *musb); +#else +static inline int musb_init_debugfs(struct musb *musb) +{ + return 0; +} +static inline void musb_exit_debugfs(struct musb *musb) +{ +} +#endif + #endif /* __MUSB_LINUX_DEBUG_H__ */ |