[PATCH v2 2/4] iio: adc: mt6323-auxadc: add mt6323 PMIC AUXADC driver

Andy Shevchenko andriy.shevchenko at intel.com
Tue Jun 9 12:33:12 PDT 2026


On Tue, Jun 09, 2026 at 07:15:42PM +0000, Roman Vivchar wrote:
> On Tuesday, June 9th, 2026 at 9:30 PM, Andy Shevchenko <andriy.shevchenko at intel.com> wrote:
> > On Tue, Jun 09, 2026 at 04:31:59PM +0300, Roman Vivchar via B4 Relay wrote:

...

> > > +	case IIO_CHAN_INFO_RAW:
> > > +		scoped_guard(mutex, &auxadc->lock) {
> >
> > I'm wondering why we haven't moved to guard()() here
> 
> The compiler would complain about 'cannot jump from switch statement'
> due to default case.

I am not sure I follow. See the examples in the existing drivers. They are
warning clean in that sense.

-- 
With Best Regards,
Andy Shevchenko





More information about the linux-arm-kernel mailing list