usb: typec: tcpm: Use usb_debug_root as root for our debugfs entry
authorHans de Goede <hdegoede@redhat.com>
Sat, 17 Aug 2019 18:43:38 +0000 (20:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Aug 2019 11:32:25 +0000 (13:32 +0200)
commit9f4bc2ed74086e51cfc75754adfcbff86f28597a
treee70140153baa30623b2538dae55dd69ca6375b70
parent6d03c140db2e9296407bef470473e0e8be31b2c5
usb: typec: tcpm: Use usb_debug_root as root for our debugfs entry

Use usb_debug_root as root for our debugfs entry instead of creating our
own subdirectory under the debugfs root.

Another patch in this series will make the same change to the fusb302
driver, which also uses dev_name() (on the same device) for the debugfs
entry name. So we also prefix dev_name() with "tcpm-" here to avoid a
name conflict.

Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20190817184340.64086-1-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpm.c