]> 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)
commitf0c7e3cb985a5d384c10a61d24a38b7b9fc8efb2
tree595e6d8ff7c1d561e430c953213b1435184fc752
parent3ea8df6a6e5d2f299e948cfd7c60fe15d4d51c98
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