[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121113094255.GW18224@opensource.wolfsonmicro.com>
Date: Tue, 13 Nov 2012 18:42:57 +0900
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Marek Szyprowski <m.szyprowski@...sung.com>
Cc: linux-kernel@...r.kernel.org, linux-mmc@...r.kernel.org,
Kyungmin Park <kyungmin.park@...sung.com>,
Liam Girdwood <lrg@...com>, Chris Ball <cjb@...top.org>
Subject: Re: [PATCH v2] regulator: treat regulators with constant volatage as
fixed
On Tue, Nov 13, 2012 at 10:35:34AM +0100, Marek Szyprowski wrote:
> + if (rdev->constraints->valid_ops_mask & REGULATOR_CHANGE_VOLTAGE)
> + return rdev->desc->n_voltages ? rdev->desc->n_voltages :
> + -EINVAL;
The idea here was to avoid the ternery operator completely.
Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)
Powered by blists - more mailing lists