net: qmi_wwan: use a single bind function for all device types
authorBjørn Mork <bjorn@mork.no>
Fri, 7 Sep 2012 07:36:07 +0000 (07:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Sep 2012 18:50:06 +0000 (14:50 -0400)
commitbd877e489126b2214f971ae8ef7bd17b48a94a7b
tree7463d29b62f399f75b4e1618d8c90c9e25f58a4a
parent3ee2403739db7ec8b683e6451c3401ad716ad5a2
net: qmi_wwan: use a single bind function for all device types

Refactoring the bind code lets us use a common driver_info struct
for all supported devices, simplifying the code a bit.  The
real advantage is that devices using the CDC ECM interface
layout now also can be added dynamically using the new_id sysfs
interface.  This simplifies testing of new devices.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/qmi_wwan.c