]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: net: Tidy up designware driver ready for driver model
authorSimon Glass <sjg@chromium.org>
Sun, 5 Apr 2015 22:07:40 +0000 (16:07 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:28:33 +0000 (22:28 +0200)
commit4a1b712cb079df07d089b9dc1b051a7fe5a98854
treed80e3896765dad105269358f631976912b587adf
parent81527c8c1533c4d5e0115fef7e4a47145e1129bd
dm: net: Tidy up designware driver ready for driver model

Adjust the error handling to use errno.h instead of returning -1. Change
leaf functions to pass in the arguments they require rather than struct
eth_device. Apart from simplifying the code it makes is easier to reuse
these functions for driver model, since mostly they actually only use
struct dw_eth_priv (which we can keep).

Create a stub for each Ethernet operation function. This will allow use to
share code with the driver model versions.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/designware.c