[U-Boot] [PATCH v6 07/17] dm: Add README for driver model

Gerhard Sittig gsi at denx.de
Sun Nov 10 19:20:42 CET 2013


On Thu, Nov 07, 2013 at 09:32 -0700, Simon Glass wrote:
> 
> +Terminology
> +-----------
> +
> +Uclass - a group of device which operate in the same way. A uclass provides

s/device/devices/?

> +What is going on?
> +-----------------
> +
> +Let's start at the top. The demo command is in common/cmd_demo.c. It does
> +the usual command procesing and then:
> +
> +	struct device *demo_dev;
> +
> +	ret = uclass_get_device(UCLASS_DEMO, devnum, &demo_dev);

Ah, your adding 'devnum' to the routine's signature resolved a
lot of the confusion I had after looking at the previous version
of the document. :)  Sorry for not sending my feedback in time.


virtually yours
Gerhard Sittig
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de


More information about the U-Boot mailing list