Add alarm support for IIO HWMONs as well as the minimum/maximum
thresholds. This involves the creation of two new in-kernel IIO APIs to
set the thresholds and be notified of events.
I think this should probably go through the iio tree given the amount of
IIO stuff it touches.
Sean Anderson (7):
math64: Add div64_s64_rem
iio: inkern: Add API for reading/writing events
iio: Add in-kernel API for events
hwmon: iio: Refactor scale calculation into helper
hwmon: iio: Add helper function for creating attributes
hwmon: iio: Add min/max support
hwmon: iio: Add alarm support
drivers/hwmon/iio_hwmon.c | 522 ++++++++++++++++++++++++++++---
drivers/iio/industrialio-event.c | 34 +-
drivers/iio/inkern.c | 198 ++++++++++++
include/linux/iio/consumer.h | 86 +++++
include/linux/math64.h | 18 ++
lib/math/div64.c | 20 ++
6 files changed, 830 insertions(+), 48 deletions(-)
--
2.35.1.1320.gc452695387.dirty