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

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

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/tcpm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c
index 96562744101c..6ee6a1f55bc6 100644
--- a/drivers/usb/typec/tcpm/tcpm.c
+++ b/drivers/usb/typec/tcpm/tcpm.c
@@ -578,7 +578,7 @@ static void tcpm_debugfs_init(struct tcpm_port *port)

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