Skip to content

hwmon: (ina2xx) Cleanup and convert to use with_info API

Guenter Roeck linux-hwmon 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest14 patches 9 repliesIn review
  2. v111 patches 17 repliesSuperseded

Changes in v2 from the cover letter

- Added Reviewed-by: tags
- Fixed typos in commit description
- Dropped unrelated cosmetic changes
- Set .use_single_write and .use_single_read flags in regmap configuration
- Set latch bit only once when initializing the chip
- Added support for current limit attributes
- Use shunt voltage register to calculate current

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14hwmon: (ina2xx) Reorder include files to alphabetic orderdrivers/hwmon/ina2xx.c+7 -80 replies
2/14hwmon: (ina2xx) Replace platform data with device propertiesdrivers/hwmon/ina2xx.c+4 -120 replies
3/14hwmon: (ina2xx) Use bit operationsdrivers/hwmon/ina2xx.c+42 -420 replies
4/14hwmon: (ina2xx) Mark regmap_config as constdrivers/hwmon/ina2xx.c+2 -101 reply
5/14hwmon: (ina2xx) Use local regmap pointer if used more than oncedrivers/hwmon/ina2xx.c+10 -130 replies
6/14hwmon: (ina2xx) Re-initialize chip using regmap functionsdrivers/hwmon/ina2xx.c+41 -91 reply
7/14hwmon: (ina2xx) Fix various overflow issuesdrivers/hwmon/ina2xx.c+20 -120 replies
8/14hwmon: (ina2xx) Consolidate chip initialization codedrivers/hwmon/ina2xx.c+43 -681 reply
9/14hwmon: (ina2xx) Set alert latchdrivers/hwmon/ina2xx.c+5 -21 reply
10/14hwmon: (ina2xx) Move ina2xx_get_value()drivers/hwmon/ina2xx.c+36 -360 replies
11/14hwmon: (ina2xx) Convert to use with_info hwmon APIdrivers/hwmon/ina2xx.c+293 -2022 replies
12/14hwmon: (ina2xx) Pass register to alert limit write functionsdrivers/hwmon/ina2xx.c+11 -101 reply
13/14hwmon: (ina2xx) Add support for current limitsDocumentation/hwmon/ina2xx.rst drivers/hwmon/ina2xx.c+63 -21 reply
14/14hwmon: (ina2xx) Use shunt voltage to calculate currentdrivers/hwmon/ina2xx.c+13 -11 reply

Reviews trailers per patch

All 14 patches have a Reviewed-by or Acked-by.

PatchTzung-Bi Shih
1/14R-b
2/14R-b
3/14R-b
4/14R-b
5/14R-b
6/14R-b
7/14R-b
8/14R-b
9/14R-b
10/14R-b
11/14R-b
12/14R-b
13/14R-b
14/14R-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 00/14] hwmon: (ina2xx) Cleanup and convert to use with_info API

Clean up driver and convert to use with_info API to simplify driver maintenance. Add support for reporting current limits.

v2:
- Added Reviewed-by: tags
- Fixed typos in commit description
- Dropped unrelated cosmetic changes
- Set .use_single_write and .use_single_read flags in regmap configuration
- Set latch bit only once when initializing the chip
- Added support for current limit attributes
- Use shunt voltage register to calculate current

----------------------------------------------------------------
Guenter Roeck (14):
hwmon: (ina2xx) Reorder include files to alphabetic order
hwmon: (ina2xx) Replace platform data with device properties
hwmon: (ina2xx) Use bit operations
hwmon: (ina2xx) Mark regmap_config as const
hwmon: (ina2xx) Use local regmap pointer if used more than once
hwmon: (ina2xx) Re-initialize chip using regmap functions
hwmon: (ina2xx) Fix various overflow issues
hwmon: (ina2xx) Consolidate chip initialization code
hwmon: (ina2xx) Set alert latch
hwmon: (ina2xx) Move ina2xx_get_value()
hwmon: (ina2xx) Convert to use with_info hwmon API
hwmon: (ina2xx) Pass register to alert limit write functions
hwmon: (ina2xx) Add support for current limits
hwmon: (ina2xx) Use shunt voltage to calculate current

 Documentation/hwmon/ina2xx.rst |   4 +
 drivers/hwmon/ina2xx.c         | 895 ++++++++++++++++++++++++-----------------
 2 files changed, 531 insertions(+), 368 deletions(-)