[PATCH 1/4] driver: allow register device with specific id

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Fri Sep 17 09:50:37 EDT 2010


On 15:45 Fri 17 Sep     , Sascha Hauer wrote:
> Hi J,
> 
> On Sun, Sep 12, 2010 at 01:27:37PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > if you specify id = 0 the next available id will be taken
> > otherwise fail if already registered
> 
> I think we need a better solution here. Being able to specify an id
> is a good idea in general, but since 0 is a valid id we should be able
> to specify exactly this id aswell.
> An idea is to use -1 for a dynamic id, but of course this needs changes
> to all existing devices.
I prefer to do it a second step
in this case

Best Regards,
J.



More information about the barebox mailing list