USB: core, devio: use to_usb_device
authorGeliang Tang <geliangtang@163.com>
Wed, 23 Dec 2015 13:26:50 +0000 (21:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Jan 2016 05:00:33 +0000 (21:00 -0800)
commit69ab55d7be6c3d69fa2e38f2a2bed4e91b9edf8d
treeff533014371e8692fe7a973194de09f8805ba0d2
parentaa742683bbea9f2faa28ec2f61745abf2ad86a9d
USB: core, devio: use to_usb_device

Use to_usb_device() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/devio.c
drivers/usb/core/usb.c