From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Tue, 5 Nov 2013 23:38:17 +0100 Subject: [U-Boot] [PATCH v5 06/16] dm: Add README for driver model In-Reply-To: References: <1382377782-16031-1-git-send-email-sjg@chromium.org> <201310230456.45940.marex@denx.de> Message-ID: <201311052338.17134.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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