Re: [U-Boot] [PATCH v7 2/6] net: e1000: Prepare for driver model conversion

2015-08-24 Thread Joe Hershberger
On Wed, Aug 19, 2015 at 10:33 AM, Simon Glass wrote: > 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 dri

[U-Boot] [PATCH v7 2/6] net: e1000: Prepare for driver model conversion

2015-08-19 Thread Simon Glass
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