]> 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)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 21 Aug 2015 21:32:55 +0000 (16:32 -0500)
commit5c5e707a551458d3602d684ead28a97f18a4644f
tree860564d2c20cb6925ab4eeb2af3185e6a27c7125
parentc752cd2a30517c3a8c0742d807ce5053b747baa8
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