Re: [PATCH v5 4/4] iio: light: veml6031x00: add support for events and trigger

Andy Shevchenko <[email protected]>
Newsgroups org.kernel.vger.linux-iio,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel
Organization Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo
Message-ID <[email protected]>
On Tue, Aug 11, 2026 at 01:09:29AM +0200, Javier Carrasco wrote:
> On Mon Aug 10, 2026 at 5:32 PM CEST, Andy Shevchenko wrote:
> > On Fri, Aug 07, 2026 at 03:51:55PM +0200, Javier Carrasco wrote:

...

> >> +static int veml6031x00_set_interrupt(struct veml6031x00_data *data, bool state)
> >> +	__must_hold(&data->irq_lock)
> >
> > The sparse annotations is fine, but lockdep one is even better.
> 
> I have seen a few instances in a number of subsystems where both are used
> at the same time. What is the preferred alternative here?

Both. lockdep is a runtime check, sparse one is a build-time.

-- 
With Best Regards,
Andy Shevchenko
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.