Dear Heiko Schocher, In message <[email protected]> you wrote: > > >> +static unsigned long sensors_init_done = 0; > > > > What if there are more then 32 sensors? > > Ok, that would not work ... Hmm.. I can get the number of DTTs on a board > with ARRAY_SIZE(CONFIG_DTT_SENSORS) ... should I use this info to allocate > an array, which stores the info, if the DTTs are initialized?
No - it's only a theoretical case. But I think you should add a compile-time test to catch such errors. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] ... bacteriological warfare ... hard to believe we were once foolish enough to play around with that. -- McCoy, "The Omega Glory", stardate unknown _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

