summaryrefslogtreecommitdiff
path: root/drivers/usb/core/usb.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2015-12-23 16:26:50 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-01-25 08:00:33 +0300
commit69ab55d7be6c3d69fa2e38f2a2bed4e91b9edf8d (patch)
treeff533014371e8692fe7a973194de09f8805ba0d2 /drivers/usb/core/usb.c
parentaa742683bbea9f2faa28ec2f61745abf2ad86a9d (diff)
downloadlinux-69ab55d7be6c3d69fa2e38f2a2bed4e91b9edf8d.tar.xz
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>
Diffstat (limited to 'drivers/usb/core/usb.c')
-rw-r--r--drivers/usb/core/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index ebb29caa3fe4..49b011f951b3 100644
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -241,7 +241,7 @@ static int __each_dev(struct device *dev, void *data)
if (!is_usb_device(dev))
return 0;
- return arg->fn(container_of(dev, struct usb_device, dev), arg->data);
+ return arg->fn(to_usb_device(dev), arg->data);
}
/**