diff options
author | Simon Glass <sjg@chromium.org> | 2015-04-05 16:07:40 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-04-18 11:11:37 -0600 |
commit | 64dcd25f55a06953bb1ed234ffbad233c107bc15 (patch) | |
tree | 0c428affc2d6c84458fe4242c5719ba3d054cb89 /lib/rbtree.c | |
parent | c74c8e6651e760c6b0a25aa229b9adde706a547b (diff) |
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>
Diffstat (limited to 'lib/rbtree.c')
0 files changed, 0 insertions, 0 deletions