[PATCH 06/28] usb: typec: fusb302: use usb_debugfs_create_file() to create debugfs file

Chunfeng Yun
2019-11-06T03:16:37Z

Use usb_debugfs_create_file() to create debugfs file under usb
root directory

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
drivers/usb/typec/tcpm/fusb302.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/typec/tcpm/fusb302.c b/drivers/usb/typec/tcpm/fusb302.c
index ed8655c6af8c..beb1d6afd67d 100644
--- a/drivers/usb/typec/tcpm/fusb302.c
+++ b/drivers/usb/typec/tcpm/fusb302.c
@@ -213,7 +213,7 @@ static void fusb302_debugfs_init(struct fusb302_chip *chip)

mutex_init(&chip->logbuffer_lock);
snprintf(name, NAME_MAX, "fusb302-%s", dev_name(chip->dev));
- chip->dentry = debugfs_create_file(name, S_IFREG | 0444, usb_debug_root,
+ chip->dentry = usb_debugfs_create_file(name, S_IFREG | 0444,
chip, &fusb302_debug_fops);
}