Linux Hardware Monitor development
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] regmap: Implement regmap_multi_reg_read()
@ 2024-07-10  1:56 Guenter Roeck
  2024-07-10  1:56 ` [RFC PATCH 1/3] " Guenter Roeck
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Guenter Roeck @ 2024-07-10  1:56 UTC (permalink / raw)
  To: Mark Brown
  Cc: Greg Kroah-Hartman, Rafael J . Wysocki, Jean Delvare, linux-hwmon,
	linux-kernel, Guenter Roeck

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(-)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-07-11 11:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-10  1:56 [RFC PATCH 0/3] regmap: Implement regmap_multi_reg_read() Guenter Roeck
2024-07-10  1:56 ` [RFC PATCH 1/3] " Guenter Roeck
2024-07-10  1:56 ` [RFC PATCH 2/3] hwmon: (adt7470) Use multi-byte regmap operations Guenter Roeck
2024-07-10  1:56 ` [RFC PATCH 3/3] hwmon: (tmp401) " Guenter Roeck
2024-07-10 23:24 ` (subset) [RFC PATCH 0/3] regmap: Implement regmap_multi_reg_read() Mark Brown
2024-07-11  1:14 ` Mark Brown
2024-07-11  3:33   ` Guenter Roeck
2024-07-11 11:39     ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox