Re: [PATCH] regulator: twl: Add 'fixed' set_voltage callback

From: Mark Brown
Date: Fri Jun 24 2011 - 07:19:36 EST


On Fri, Jun 24, 2011 at 02:16:54AM +0530, Jassi Brar wrote:
> Define dummy set_voltage callback for fixed lines,
> without which voltage constraints fail to apply.
>
> Signed-off-by: Jassi Brar <jaswinder.singh@xxxxxxxxxx>

No, this isn't sensible - fixed voltage regulators aren't an unusual
property of this device, they've very common. The core should handle
this gracefully. Probably whatever consumer is doing the setting also
ought to be updated to check that the voltages it wants to set are
supported at startup since otherwise it can end up repeatedly trying to
set something that'll never work.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/