On Mon, Mar 30, 2009 at 03:38:41PM +0400, Sergei Shtylyov wrote: > David Brownell wrote: > >>> +u32 davinci_timer_irqs[NUM_TIMERS] = { > >> Isn't wanting NUM_TIMERS itself a problem? Why not just >> pass the size of the timer address array, and then just >> know that the IRQ array is twice as big? > > Or better still, have a structure like: > > struct timer64 { > u32 base; > int bot_irq, top_irq, cmp_irq; > };
Yeah, I like that. I'll do something like this. Mark -- _______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source