[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110519090849.GA6251@elte.hu>
Date: Thu, 19 May 2011 11:08:49 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: LKML <linux-kernel@...r.kernel.org>,
LAK <linux-arm-kernel@...ts.infradead.org>,
John Stultz <john.stultz@...aro.org>
Subject: Re: [patch 4/7] clockevents: Provide combined configure and register
function
* Thomas Gleixner <tglx@...utronix.de> wrote:
> +extern void clockevents_config_and_register(struct clock_event_device *dev,
> + u32 freq, unsigned long min_delta,
> + unsigned long max_delta);
might be worth collecting these fields into a clocksource_params structure:
struct clocksource_params {
u32 freq;
unsigned long min_delta;
unsigned long max_delta;
};
That way the initialization API looks even more streamlined:
extern void
clockevents_config_and_register(struct clock_event_device *dev,
struct clocksource_params params);
and could be extended in the future, without having to update every single
clocksource driver again.
But a good first step in any case:
Reviewed-by: Ingo Molnar <mingo@...e.hu>
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists