net: ks8851: Pass around driver private data
authorMarek Vasut <marex@denx.de>
Wed, 25 Mar 2020 16:35:00 +0000 (17:35 +0100)
committerMarek Vasut <marex@denx.de>
Fri, 22 May 2020 17:46:45 +0000 (19:46 +0200)
commitb7c6ae2e82832b98572a538ddfe7c365c07f57d9
tree5c3f2c8107b5cd097f11ce53e5519a5b3809e090
parent8ec27b01bc8b492a3aacc76a299f4e24b1a44d0c
net: ks8851: Pass around driver private data

Introduce a private data structure for this driver with embedded
struct eth_device and pass it around. This prepares the driver to
work with both DM and non-DM systems.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Eugen Hristev <eugen.hristev@microchip.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/ks8851_mll.c