Skip to content
Commit 7501a3a9 authored by Patrik Dahlström's avatar Patrik Dahlström Committed by Jonathan Cameron
Browse files

iio: adc: palmas: use iio_event_direction for threshold polarity



Instead of having high_threshold > 0 as an indicator for upper threshold
event and lower threshold event otherwise, use enum iio_event_direction
instead. This is hopefully less ambiguous.

Signed-off-by: default avatarPatrik Dahlström <risca@dalakolonin.se>
Link: https://lore.kernel.org/r/20230408114825.824505-6-risca@dalakolonin.se


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent d2ab4eea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment