Re: [PATCH RFC v3 1/2] iio: introduce the FAULT event type
From: David Lechner
Date: Sat Jan 18 2025 - 12:14:22 EST
On 1/16/25 9:01 AM, Guillaume Ranquet wrote:
> Add a new event type to describe an hardware failure.
>
> Signed-off-by: Guillaume Ranquet <granquet@xxxxxxxxxxxx>
> ---
...
> enum iio_event_direction {
> @@ -128,6 +129,7 @@ enum iio_event_direction {
> IIO_EV_DIR_NONE,
> IIO_EV_DIR_SINGLETAP,
> IIO_EV_DIR_DOUBLETAP,
> + IIO_EV_DIR_OPENWIRE,
I think it would be a good idea to add additional namespace in the identifier
to make it clear that OPENWIRE only should be used with IIO_EV_TYPE_FAULT.
i.e. IIO_EV_DIR_FAULT_OPENWIRE
> };
>