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)
commit853c24f79dd6f4a3d6d7b52f235fe121aee08b45
tree082552914cade08c19da13e6c83c317eebc51f5d
parentd1904fbd881e43cde2ec024117efaba83f8d9996
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