]> git.baikalelectronics.ru Git - kernel.git/commit
usbnet: introduce usbnet 3 command helpers
authorMing Lei <ming.lei@canonical.com>
Wed, 24 Oct 2012 19:46:54 +0000 (19:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Oct 2012 07:36:50 +0000 (03:36 -0400)
commitebcf9f7651e6d191006402872704122e08465959
tree83242b70bcf295b189ac4afa5ba115755bc9a66a
parent9c069e44024c83299f0bdf79f4c375f0a0070ce9
usbnet: introduce usbnet 3 command helpers

This patch introduces the below 3 usb command helpers:

usbnet_read_cmd / usbnet_write_cmd / usbnet_write_cmd_async

so that each low level driver doesn't need to implement them
by itself, and the dma buffer allocation for usb transfer and
runtime PM things can be handled just in one place.

Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c
include/linux/usb/usbnet.h