Re: [PATCH v2] regulator: treat regulators with constant volatage asfixed
From: Mark Brown
Date: Tue Nov 13 2012 - 04:43:00 EST
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.
Attachment:
signature.asc
Description: Digital signature