]> git.baikalelectronics.ru Git - kernel.git/commit
net: qmi_wwan: define a structure for driver specific state
authorBjørn Mork <bjorn@mork.no>
Tue, 19 Jun 2012 00:41:59 +0000 (00:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jun 2012 22:04:14 +0000 (15:04 -0700)
commitebccb05d39bcb159ddc1ae452d9818382747969a
tree082552914cade08c19da13e6c83c317eebc51f5d
parent675682ee0d3f618286fe92895c98e72623cecc33
net: qmi_wwan: define a structure for driver specific state

usbnet allocates a fixed size array for minidriver specific
state.  Naming the fields and taking advantage of type checking
is a bit more failsafe than casting array elements each time
they are referenced.

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