]> 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)
commit9b1ac462425a0f751db06d87e2e3c850f39a2f43
tree082552914cade08c19da13e6c83c317eebc51f5d
parent41f6ec4ce7d7e297d8d0456a9ef2a54e3ec7ec4c
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