Re: [PATCH v1] regulator: Don't error out fixed regulator in regulator_sync_voltage()
From: Mark Brown
Date: Thu Oct 21 2021 - 10:33:48 EST
On Thu, Oct 21, 2021 at 04:55:17PM +0300, Dmitry Osipenko wrote:
> The alternative could be to check regulator's capabilities:
> if (!regulator_ops_is_valid(rdev, REGULATOR_CHANGE_VOLTAGE))
> return 0;
> This looks like a better variant, actually.
Yes, that should be more robust.
Attachment:
signature.asc
Description: PGP signature