]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitad90a73f0236c41f7a2dedc2e75c7b5a364eb93e
tree61e4337db073e1aeb091db045363673552937363
parent368be1ca28f66deba16627e2a02e78adedd023a6
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