Re: [PATCH v2 1/1] media: v4l: Don't turn on privacy LED if streamon fails

From: Laurent Pinchart
Date: Mon Apr 15 2024 - 03:40:28 EST


On Mon, Apr 15, 2024 at 07:29:41AM +0000, Sakari Ailus wrote:
> On Mon, Apr 15, 2024 at 10:18:12AM +0300, Laurent Pinchart wrote:
> > > Maybe because a large majority is GPIO-controlled?
> >
> > GPIOs can fail, in particular when they're on I2C GPIO expanders.
>
> Sure, but gpiod_set_value() return type is also void.

I know, so there's nothing we can do short term.

> It just works... right?

Until it doesn't :-)

--
Regards,

Laurent Pinchart