From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756176AbZBZUVb (ORCPT ); Thu, 26 Feb 2009 15:21:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757265AbZBZUVG (ORCPT ); Thu, 26 Feb 2009 15:21:06 -0500 Received: from cassiel.sirena.org.uk ([80.68.93.111]:3677 "EHLO cassiel.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756369AbZBZUVA (ORCPT ); Thu, 26 Feb 2009 15:21:00 -0500 Date: Thu, 26 Feb 2009 20:20:56 +0000 From: Mark Brown To: David Brownell Cc: Liam Girdwood , lkml , OMAP Subject: Re: [patch 2.6.29-rc6 1/2] regulator: enumerate voltages (v2) Message-ID: <20090226202055.GE8595@sirena.org.uk> References: <200902081037.06645.david-b@pacbell.net> <200902231245.44360.david-b@pacbell.net> <200902231252.01980.david-b@pacbell.net> <200902261148.36892.david-b@pacbell.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200902261148.36892.david-b@pacbell.net> X-Cookie: My haircut is totally traditional! User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: broonie@sirena.org.uk X-SA-Exim-Scanned: No (on cassiel.sirena.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 26, 2009 at 11:48:36AM -0800, David Brownell wrote: > Updates since previous version: address feedback, simplify. Acked-by: Mark Brown 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.