]> git.baikalelectronics.ru Git - kernel.git/commit
usb: cdc-wdm: adding list lookup indirection
authorBjørn Mork <bjorn@mork.no>
Tue, 6 Mar 2012 16:29:21 +0000 (17:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2012 21:06:48 +0000 (13:06 -0800)
commit44f8d4a67f9cd8c123726f597d169c9ad8a42f06
tree8b2bc79cf10452c499741a5bb1a0a7c22ab4df94
parentc11992d34964c2852094b70e716e01507ba4adf1
usb: cdc-wdm: adding list lookup indirection

Register all interfaces handled by this driver in a list, getting
rid of the dependency on usb_set_intfdata.  This allows further
generalization and simplification of the probe/create functions.

This is needed to decouple wdm_open from the driver owning the
interface, and it also allows us to share all the code in
wdm_create with drivers unable to do usb_set_intfdata.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-wdm.c