[PATCH net-next 13/14] usbnet: kaweth: Use net_device_stats from struct net_device

2017-04-07 Thread Tobias Klauser
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.

[PATCH net-next 14/14] usbnet: pegasus: Use net_device_stats from struct net_device

2017-04-07 Thread Tobias Klauser
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

[PATCH] ch9200: Convert to use module_usb_driver

2015-09-22 Thread Tobias Klauser
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

Re: Fwd: USB HID Gadget support for dwc3 on platform/intel-mid

2015-01-09 Thread Tobias Klauser
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

[PATCH 1/2] USB: isp1362: Use devm_ioremap_resource

2014-08-05 Thread Tobias Klauser
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

[PATCH 1/2] usb: gadget: Add helper macro for usb_composite_driver boilerplate

2014-07-09 Thread Tobias Klauser
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

[PATCH 0/2] usb: gadget: Introduce and use helper macro for usb_composite_driver boilerplate

2014-07-09 Thread Tobias Klauser
. 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

[PATCH 2/2] usb: gadget: Convert drivers to use module_usb_composite_driver()

2014-07-09 Thread Tobias Klauser
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