Skip to content

rtc: isl12022: cleanups and hwmon support

Rasmus Villemoes linux-hwmon linux-rtc lkml 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 5 repliesApplied
  2. v16 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- Use devm_hwmon_device_register_with_info() (Guenter), and use the opportunity to also expose an update_interval with the constant value 60000.

- Convert some dev_dbgs to use %ptR, remove a dev_info() (Alexandre)

- Add patch setting range_min, range_max (Alexandre)

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/9rtc: isl12022: stop using deprecated devm_rtc_device_register()drivers/rtc/rtc-isl12022.c+7 -40 replies
2/9rtc: isl12022: specify range_min and range_maxdrivers/rtc/rtc-isl12022.c+2 -00 replies
3/9rtc: isl12022: drop a dev_info()drivers/rtc/rtc-isl12022.c+0 -30 replies
4/9rtc: isl12022: simplify some expressionsdrivers/rtc/rtc-isl12022.c+4 -40 replies
5/9rtc: isl12022: use %ptRdrivers/rtc/rtc-isl12022.c+2 -100 replies
6/9rtc: isl12022: use dev_set_drvdata() instead of i2c_set_clientdata()drivers/rtc/rtc-isl12022.c+2 -30 replies
7/9rtc: isl12022: drop redundant write to HR registerdrivers/rtc/rtc-isl12022.c+0 -140 replies
8/9rtc: isl12022: switch to using regmap APIdrivers/rtc/Kconfig drivers/rtc/rtc-isl12022.c+26 -850 replies
9/9rtc: isl12022: add support for temperature sensordrivers/rtc/rtc-isl12022.c+104 -07 replies

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by.

PatchGuenter Roeck
1/9
2/9
3/9
4/9
5/9
6/9
7/9
8/9
9/9R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/9] rtc: isl12022: cleanups and hwmon support

This series does a few cleanups of the isl12022 driver,

- removes use of deprecated function
- removes some redundant code
- switches to regmap API instead of private helpers

It also provides range_min, range_max values and finally hooks up the temperatur sensor to hwmon.

Changes in v2:

- Use devm_hwmon_device_register_with_info() (Guenter), and use the opportunity to also expose an update_interval with the constant value 60000.

- Convert some dev_dbgs to use %ptR, remove a dev_info() (Alexandre)

- Add patch setting range_min, range_max (Alexandre)

Not changed in v2: For now, I've kept the low-battery dev_warn(). Implementing support for the ioctls RTC_VL_READ/RTC_VL_CLR is on my radar, but I will need some more time for reading up on and deciding on the details of what the chip provides and how to map that information to the various defined RTC_VL_* bits. I also need to figure out a good way to reliably trigger a low-battery condition so I can test the ioctl support. So I hope these patches can go in for now and not be blocked on the series expanding even further.

Rasmus Villemoes (9):
rtc: isl12022: stop using deprecated devm_rtc_device_register()
rtc: isl12022: specify range_min and range_max
rtc: isl12022: drop a dev_info()
rtc: isl12022: simplify some expressions
rtc: isl12022: use %ptR
rtc: isl12022: use dev_set_drvdata() instead of i2c_set_clientdata()
rtc: isl12022: drop redundant write to HR register
rtc: isl12022: switch to using regmap API
rtc: isl12022: add support for temperature sensor

 drivers/rtc/Kconfig        |   1 +
 drivers/rtc/rtc-isl12022.c | 237 ++++++++++++++++++++-----------------
 2 files changed, 131 insertions(+), 107 deletions(-)
Signature · 1 line
2.37.2