]> git.baikalelectronics.ru Git - kernel.git/commit
smsc95xx: use usbnet->driver_priv
authorAndre Edich <andre.edich@microchip.com>
Wed, 26 Aug 2020 11:17:16 +0000 (13:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Aug 2020 13:48:43 +0000 (06:48 -0700)
commita7ed526f172f2519bd8d680051ed49be3edcd05c
tree61e4337db073e1aeb091db045363673552937363
parent451fe3a03720435f5835d8d4cc029b116a77f172
smsc95xx: use usbnet->driver_priv

Using `void *driver_priv` instead of `unsigned long data[]` is more
straightforward way to recover the `struct smsc95xx_priv *` from the
`struct net_device *`.

Signed-off-by: Andre Edich <andre.edich@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c