summaryrefslogtreecommitdiff
path: root/include/linux/regmap.h
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2024-07-09 18:56:20 -0700
committerMark Brown <broonie@kernel.org>2024-07-10 18:45:34 +0100
commit3c1ff93b4deea502cd8b0869839557cab2a28b71 (patch)
tree161bbd23e34f449c9fa69fc874f3ffa80c9751a9 /include/linux/regmap.h
parentf2661062f16b2de5d7b6a5c42a9a5c96326b8454 (diff)
downloadlwn-3c1ff93b4deea502cd8b0869839557cab2a28b71.tar.gz
lwn-3c1ff93b4deea502cd8b0869839557cab2a28b71.zip
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. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20240710015622.1960522-2-linux@roeck-us.net Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r--include/linux/regmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index a6bc2980a98b..9c1ddbf82719 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -1237,6 +1237,8 @@ int regmap_noinc_read(struct regmap *map, unsigned int reg,
void *val, size_t val_len);
int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val,
size_t val_count);
+int regmap_multi_reg_read(struct regmap *map, unsigned int *reg, void *val,
+ size_t val_count);
int regmap_update_bits_base(struct regmap *map, unsigned int reg,
unsigned int mask, unsigned int val,
bool *change, bool async, bool force);