[U-Boot] [PATCH v5 06/16] dm: Add README for driver model
Marek Vasut
marex at denx.de
Tue Nov 5 23:38:17 CET 2013
Hi Simon,
[...]
> >> +Declaring Uclasses
> >> +------------------
> >> +
> >> +The demo uclass is declared like this:
> >> +
> >> +U_BOOT_CLASS(demo) = {
> >> + .id = UCLASS_DEMO,
> >> +};
> >> +
> >> +It is also possible to specify special methods for probe, etc. The
> >> uclass +numbering comes from include/dm/uclass.h. To add a new uclass,
> >> add to the +end of the enum there, then declare your uclass as above.
> >
> > I wonder if we cannot even automate the numbering here ;-)
>
> We could but it would need some lookup mechanism. String search? I'll
> leave it as is at the moment but add something to the bottom of the
> README.
Yep, full ACK. Thanks!
Best regards,
Marek Vasut
More information about the U-Boot
mailing list