Skip to content

Commit de4c739

Browse files
Chunfeng Yungregkh
authored andcommitted
usb: dwc2: create debugfs directory under usb root
Now the USB gadget subsystem can use the USB debugfs root directory, so move dwc2's directory from the root of the debugfs filesystem into the root of usb Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Link: https://lore.kernel.org/r/1573541519-28488-7-git-send-email-chunfeng.yun@mediatek.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b3c69ec commit de4c739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/dwc2/debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ int dwc2_debugfs_init(struct dwc2_hsotg *hsotg)
770770
int ret;
771771
struct dentry *root;
772772

773-
root = debugfs_create_dir(dev_name(hsotg->dev), NULL);
773+
root = debugfs_create_dir(dev_name(hsotg->dev), usb_debug_root);
774774
hsotg->debug_root = root;
775775

776776
debugfs_create_file("params", 0444, root, hsotg, &params_fops);

0 commit comments

Comments
 (0)