]> git.baikalelectronics.ru Git - kernel.git/commit
net: cdc_ncm: split .bind device initialization
authorBjørn Mork <bjorn@mork.no>
Fri, 16 May 2014 19:48:20 +0000 (21:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 May 2014 02:39:01 +0000 (22:39 -0400)
commit2c4ac8621e65f84551e74448f5ba6b4d1ae1d901
tree595e6d8ff7c1d561e430c953213b1435184fc752
parent009c3113547c5124c4ea0d308471bf732a334635
net: cdc_ncm: split .bind device initialization

Now that we have split out the part of the device setup
which MUST be done with the data interface in altsetting 0,
we can delay the rest of the initialization. This allows us
to move some of post-init buffer size config from bind to
the appropriate setup function.

The purpose of this refactoring is to collect all code
adjusting the rx_max and tx_max buffers in one place, so
that it is easier to call it from multiple call sites.

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