On Thu, 29 Jan 2009 14:08:01 +0100 (CET) Patrick Boettcher <patrick.boettcher@xxxxxxx> wrote: > On Thu, 29 Jan 2009, Mauro Carvalho Chehab wrote: > >> We could do that, still I'm not sure if ARRAY_SIZE will work in that > >> situation?! Are you > >> sure, Mauro? > > > > Well, at least here, it is compiling fine. I can't really test it, since I > > don't have any dib0700 devices here. > > Hmm, your patch is shifting the counting problem to another place. Instead > of counting manually the devices-array-elements, one now needs to count > the number of device_properties ;) . > With such a patch we would risk to break some device support and as I > never saw a patch which broke the current num_device_descs-manual-count I > don't see the need to change. Nothing is perfect ;) I suspect that you have more additions at the number of the devices than on the number of device properties. So, the risk of doing bad things seems lower. Also, a simple board addition won't need to touch at the number of devices. IMO, it is really bad to have to explicitly say the number of devices at those arrays. Maybe we may use some macro logic here to avoid such risks, or use a NULL terminated list instead. > > -- > Mail: patrick.boettcher@xxxxxxx > WWW: http://www.wi-bw.tfh-wildau.de/~pboettch/ Cheers, Mauro -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html