Skip to content

Add threshold events support

Dimitri Fedrau kernel-janitors linux-iio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 11 repliesIn review

Changes in v2 from the cover letter

- Remove pretty printing patches from series
- Add patch for providing index for both channels(ABI change)! Suggested by Jonathan, hope this okay.
- Remove formatting in a precursor patch
- Add lock documentation
- Add define MCP9600_TEMP_SCALE_NUM and use it instead of MICRO. MICRO is type unsigned long which we have to cast to int when using multiplication or division, because we are handling negative values.
- Use switch statement in mcp9600_write_thresh
- Replaced generic interrupt handler with four separate interrupt handler
- Use one lock instead of four
- Added error check for mcp9600_probe_alerts

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iio: temperature: mcp9600: Provide index for both channelsdrivers/iio/temperature/mcp9600.c+7 -26 replies
2/2iio: temperature: mcp9600: add threshold events supportdrivers/iio/temperature/mcp9600.c+389 -04 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] Add threshold events support

Add patch for providing index for both channels and add patch for threshold events support for the MCP9600 device.

Changes in V2:
- Remove pretty printing patches from series
- Add patch for providing index for both channels(ABI change)! Suggested by Jonathan, hope this okay.
- Remove formatting in a precursor patch
- Add lock documentation
- Add define MCP9600_TEMP_SCALE_NUM and use it instead of MICRO. MICRO is type unsigned long which we have to cast to int when using multiplication or division, because we are handling negative values.
- Use switch statement in mcp9600_write_thresh
- Replaced generic interrupt handler with four separate interrupt handler
- Use one lock instead of four
- Added error check for mcp9600_probe_alerts

Dimitri Fedrau (2):
iio: temperature: mcp9600: Provide index for both channels
iio: temperature: mcp9600: add threshold events support

 drivers/iio/temperature/mcp9600.c | 398 +++++++++++++++++++++++++++++-
 1 file changed, 396 insertions(+), 2 deletions(-)
Signature · 1 line
2.39.2