Skip to content

Commit 91a9f2d

Browse files
Chunfeng Yungregkh
authored andcommitted
usb: gadget: udc: gr_udc: create debugfs directory under usb root
Now the USB gadget subsystem can use the USB debugfs root directory, so move it's directory from the root of the debugfs filesystem into the root of usb Signed-off-by: Chunfeng Yun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f5b7f7c commit 91a9f2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/usb/gadget/udc/gr_udc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <linux/list.h>
3030
#include <linux/interrupt.h>
3131
#include <linux/device.h>
32+
#include <linux/usb.h>
3233
#include <linux/usb/ch9.h>
3334
#include <linux/usb/gadget.h>
3435
#include <linux/dma-mapping.h>
@@ -208,7 +209,7 @@ static void gr_dfs_create(struct gr_udc *dev)
208209
{
209210
const char *name = "gr_udc_state";
210211

211-
dev->dfs_root = debugfs_create_dir(dev_name(dev->dev), NULL);
212+
dev->dfs_root = debugfs_create_dir(dev_name(dev->dev), usb_debug_root);
212213
debugfs_create_file(name, 0444, dev->dfs_root, dev, &gr_dfs_fops);
213214
}
214215

0 commit comments

Comments
 (0)