Skip to content

RFC regmap: Implement regmap_multi_reg_read()

Guenter Roeck linux-hwmon lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3regmap: Implement regmap_multi_reg_read()drivers/base/regmap/regmap.c include/linux/regmap.h+70 -350 replies
2/3hwmon: (adt7470) Use multi-byte regmap operationsdrivers/hwmon/adt7470.c+7 -150 replies
3/3hwmon: (tmp401) Use multi-byte regmap operationsdrivers/hwmon/tmp401.c+7 -120 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/3] regmap: Implement regmap_multi_reg_read()

regmap_multi_reg_read() is similar to regmap_bilk_read() but reads from an array of non-sequential registers. It is helpful if multiple non- sequential registers need to be read in a single operation which would otherwise have to be mutex protected.

The name of the new function was chosen to match the existing function regmap_multi_reg_write().

The first patch of the series introduces the new function. The following two patches provide examples for its use.

----------------------------------------------------------------
Guenter Roeck (3):
regmap: Implement regmap_multi_reg_read()
hwmon: (adt7470) Use multi-byte regmap operations
hwmon: (tmp401) Use multi-byte regmap operations

 drivers/base/regmap/regmap.c | 103 ++++++++++++++++++++++++++++---------------
 drivers/hwmon/adt7470.c      |  22 +++------
 drivers/hwmon/tmp401.c       |  19 +++-----
 include/linux/regmap.h       |   2 +
 4 files changed, 84 insertions(+), 62 deletions(-)