Skip to content

hwmon: iio: Add alarm support

Sean Anderson linux-hwmon linux-iio lkml oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 52 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7math64: Add div64_s64_reminclude/linux/math64.h lib/math/div64.c+38 -03 replies
2/7iio: inkern: Add API for reading/writing eventsdrivers/iio/inkern.c include/linux/iio/consumer.h+254 -09 replies
3/7iio: Add in-kernel API for eventsdrivers/iio/industrialio-event.c include/linux/iio/consumer.h+59 -511 replies
4/7hwmon: iio: Refactor scale calculation into helperdrivers/hwmon/iio_hwmon.c+29 -111 reply
5/7hwmon: iio: Add helper function for creating attributesdrivers/hwmon/iio_hwmon.c+42 -364 replies
6/7hwmon: iio: Add min/max supportdrivers/hwmon/iio_hwmon.c+93 -17 replies
7/7hwmon: iio: Add alarm supportdrivers/hwmon/iio_hwmon.c+321 -117 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] hwmon: iio: Add alarm support

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(-)
Signature · 1 line
2.35.1.1320.gc452695387.dirty