[PATCH v2 3/6] iio: light: stk3310: Manage LED power supply

Andy Shevchenko andy.shevchenko at gmail.com
Tue Apr 23 16:08:13 PDT 2024


On Wed, Apr 24, 2024 at 1:41 AM Aren Moynihan <aren at peacevolution.org> wrote:
>
> The stk3310 and stk3310 chips have an input for power to the infrared
> LED. Add support for managing it's state.

its

...

>         if (IS_ERR(data->vdd_reg))
>                 return dev_err_probe(&client->dev, ret, "get regulator vdd failed\n");
>
> +       data->led_reg = devm_regulator_get(&client->dev, "leda");
> +       if (IS_ERR(data->led_reg))
> +               return dev_err_probe(&client->dev, ret, "get regulator led failed\n");

Can't you use a bulk regulator API instead?

-- 
With Best Regards,
Andy Shevchenko



More information about the linux-arm-kernel mailing list