Instead of using a private copy of struct net_device_stats in struct
kaweth_device, use stats from struct net_device. Also remove the now
unnecessary .ndo_get_stats function.
Cc: linux-usb@vger.kernel.org
Signed-off-by: Tobias Klauser <tklau...@distanz.ch>
---
drivers/net/usb/kaweth.
Instead of using a private copy of struct net_device_stats in struct
pegasus, use stats from struct net_device. Also remove the now
unnecessary .ndo_get_stats function.
Cc: Petko Manolov <pet...@nucleusys.com>
Cc: linux-usb@vger.kernel.org
Signed-off-by: Tobias Klauser <tklau...@d
Converts the ch9200 driver to use the module_usb_driver() macro which
makes the code smaller and a bit simpler.
Signed-off-by: Tobias Klauser <tklau...@distanz.ch>
---
drivers/net/usb/ch9200.c | 13 +
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/drivers/n
Hi Chris
On 2015-01-08 at 17:38:07 +0100, Chris McClimans ch...@hippiehacker.org wrote:
I found your email in the commits for gadget_hid.txt and thought one of you
might might be able to point me in the right direction. I'm trying to get
the g_hid module working with the Intel Edison.
Please
Use devm_ioremap_resource to simplify error handling in the probe
function and to get rid of some boilerplate in the remove function.
Signed-off-by: Tobias Klauser tklau...@distanz.ch
---
drivers/usb/host/isp1362-hcd.c | 103 ++---
1 file changed, 25
it is possible to eliminate a few lines of boilerplate
code per USB gadget composite driver.
Based on f3a6a4b6 (USB: Add helper macro for usb_driver boilerplate)
which introduced the according macro for USB drivers.
Signed-off-by: Tobias Klauser tklau...@distanz.ch
---
include/linux/usb/composite.h
.
Patches are against linux-next 20140709.
Tobias Klauser (2):
usb: gadget: Add helper macro for usb_composite_driver boilerplate
usb: gadget: Convert drivers to use module_usb_composite_driver()
drivers/usb/gadget/acm_ms.c | 14 ++
drivers/usb/gadget/audio.c| 12
Use the module_usb_composite_driver() macro where applicable to
eliminate the module_init/module_exit boilerplate in USB gadget composite
drivers.
Signed-off-by: Tobias Klauser tklau...@distanz.ch
---
drivers/usb/gadget/acm_ms.c | 14 ++
drivers/usb/gadget/audio.c | 12