RE: [PATCH] tools/iio: iio_event_monitor: Fix ioctl error check

From: Sa, Nuno
Date: Wed Apr 28 2021 - 11:33:50 EST


> From: Sa, Nuno <Nuno.Sa@xxxxxxxxxx>
> Sent: Wednesday, April 28, 2021 5:31 PM
> To: Paul Cercueil <paul@xxxxxxxxxxxxxxx>; Jonathan Cameron
> <jic23@xxxxxxxxxx>; Lars-Peter Clausen <lars@xxxxxxxxxx>; Peter
> Meerwald-Stadler <pmeerw@xxxxxxxxxx>
> Cc: linux-iio@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Subject: RE: [PATCH] tools/iio: iio_event_monitor: Fix ioctl error check
>
>
> > From: Paul Cercueil <paul@xxxxxxxxxxxxxxx>
> > Sent: Wednesday, April 28, 2021 5:08 PM
> > To: Jonathan Cameron <jic23@xxxxxxxxxx>; Lars-Peter Clausen
> > <lars@xxxxxxxxxx>; Peter Meerwald-Stadler
> > <pmeerw@xxxxxxxxxx>
> > Cc: linux-iio@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; Paul
> > Cercueil <paul@xxxxxxxxxxxxxxx>
> > Subject: [PATCH] tools/iio: iio_event_monitor: Fix ioctl error check
> >
> >
> > The ioctrl() call will return errno=EINVAL if the device does not
> > support the events interface, and not ENODEV.
> >
> > Signed-off-by: Paul Cercueil <paul@xxxxxxxxxxxxxxx>
>
> Reviewed-by: Nuno Sa <nuno.sa@xxxxxxxxxx>
>

I guess this should have a Fixes: tag...

- Nuno Sá