]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcc370b0aaab14cdf9fd5836564a36f5b803b0a0a
tree7463d29b62f399f75b4e1618d8c90c9e25f58a4a
parent0d504d65a373f7f8a59fe79d3258ff38db93fe82
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