
10 Nov
2013
10 Nov
'13
7:20 p.m.
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@denx.de