usb: use kobj_to_dev() API

Use kobj_to_dev() API instead of container_of().

Signed-off-by: chenqiwu <chenqiwu@xiaomi.com>
Link: https://lore.kernel.org/r/1581683820-9978-1-git-send-email-qiwuchen55@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
chenqiwu 2020-02-14 20:37:00 +08:00 • committed by Greg Kroah-Hartman
commit 0616ca73fd
2 changed files with 4 additions and 4 deletions