[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090226202055.GE8595@sirena.org.uk>
Date: Thu, 26 Feb 2009 20:20:56 +0000
From: Mark Brown <broonie@...ena.org.uk>
To: David Brownell <david-b@...bell.net>
Cc: Liam Girdwood <lrg@...mlogic.co.uk>,
lkml <linux-kernel@...r.kernel.org>,
OMAP <linux-omap@...r.kernel.org>
Subject: Re: [patch 2.6.29-rc6 1/2] regulator: enumerate voltages (v2)
On Thu, Feb 26, 2009 at 11:48:36AM -0800, David Brownell wrote:
> Updates since previous version: address feedback, simplify.
Acked-by: Mark Brown <broonie@...nsource.wolfsonmicro.com>
This looks good to merge to me - coincidentally I've got a use case for
it lined up already. Might it be worth merging the MMC client along
with this patch if the relevant maintainers are OK with that, could help
get it in faster?
Just two very minor points which might be nice to fix at some point:
> + cmin = INT_MIN;
> + cmax = INT_MAX;
> + }
> +
> + /* else require explicit machine-level constraints */
> + else if (cmin <= 0 || cmax <= 0 || cmax < cmin) {
That indentation is going to catch some people out :)
> + /* final: [min_uV..max_uV] valid iff constraints valid */
> + if (max_uV < min_uV) {
> + pr_err("%s: %s '%s' voltage constraints\n",
> + __func__, "unsupportable", name);
> + ret = -EINVAL;
That style is going to hurt grepability for the error.
--
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