]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net: e1000: Prepare for driver model conversion
authorSimon Glass <sjg@chromium.org>
Wed, 19 Aug 2015 15:33:39 +0000 (09:33 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:30:33 +0000 (10:30 +0200)
commitccfa51ddf46ef43a7d2c073b291584dfe4965b8f
tree148bcbe69d87095b63636004635e3285be13b3d5
parentd8b12e5ece75df29e7842594d48b3f4acdde9a7f
net: e1000: Prepare for driver model conversion

Since struct eth_device does not exist with CONFIG_DM_ETH defined, avoid
using it in the driver unless necessary. Most of the time it is better to
pass the private driver pointer anyway.

Also refactor the code so that code that the driver model implementation
will share are available in functions that can be called. Add stubs where
necessary.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-on: Apalis T30 2GB on Apalis Evaluation Board
drivers/net/e1000.c
drivers/net/e1000.h