[U-Boot] [PATCH 5/7] rockchip: net: dm: convert fdt_get to dev_read
Simon Glass
sjg at chromium.org
Fri Jun 9 12:28:00 UTC 2017
On 7 June 2017 at 10:46, Philipp Tomsich
<philipp.tomsich at theobroma-systems.com> wrote:
> With the new dev_read functions available, we can convert the rockchip
> architecture-specific drivers and common drivers used by these devices
> over to the dev_read family of calls.
>
> This covers the Gigabit Ethernet MAC (i.e. common designware driver and
> rockchip-specific wrapper).
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
> ---
>
> drivers/net/designware.c | 7 +++----
> drivers/net/gmac_rockchip.c | 10 ++++------
> 2 files changed, 7 insertions(+), 10 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
This is fine, but if we want to we could add a dev_read_u32() function:
int dev_read_u32(struct udevice *dev, const char *propname, u32 *resultp)
which returns an error code.
More information about the U-Boot
mailing list