]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/uwb/uwb-debug.c
wusb: add debug files for ASL, PZL and DI to the whci-hcd driver
[linux-2.6-omap-h63xx.git] / drivers / uwb / uwb-debug.c
index ec1b7a403ff36882c6918d8d15bf9c1d85360c75..a6debb9baf38e93321915cb6dcfefb3acc98c8f2 100644 (file)
@@ -407,3 +407,16 @@ void uwb_dbg_exit(void)
 {
        debugfs_remove(root_dir);
 }
+
+/**
+ * uwb_dbg_create_pal_dir - create a debugfs directory for a PAL
+ * @pal: The PAL.
+ */
+struct dentry *uwb_dbg_create_pal_dir(struct uwb_pal *pal)
+{
+       struct uwb_rc *rc = pal->rc;
+
+       if (root_dir && rc->dbg && rc->dbg->root_d && pal->name)
+               return debugfs_create_dir(pal->name, rc->dbg->root_d);
+       return NULL;
+}