[PATCH v2 3/9] regulator: mt6380: Add support for MT6380
Mark Brown
broonie at kernel.org
Tue Jul 18 06:31:36 PDT 2017
On Tue, Jul 18, 2017 at 05:49:23PM +0800, sean.wang at mediatek.com wrote:
> + if (!info->modeset_mask) {
> + dev_err(&rdev->dev, "regulator %s doesn't support set_mode\n",
> + info->desc.name);
> + return -EINVAL;
> + }
This is mostly fine but the mode operations all have this code - if the
regulator doesn't have modesetting facilities it just shouldn't have
the ops so the core can handle things in a standard fashion. It'd mean
defining a separate set of operations for those regulators but that's
fine.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mediatek/attachments/20170718/402cc050/attachment.sig>
More information about the Linux-mediatek
mailing list