diff options
| author | Mark Brown <broonie@kernel.org> | 2024-07-10 23:05:45 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2024-07-10 23:05:45 +0100 |
| commit | 450a60ef607900bb9affb0e822fea9726679c512 (patch) | |
| tree | 5ec688eeae9b1d713ef3028df03bc9e155d171dd /include/linux/regmap.h | |
| parent | f21711bbdbf0d95a389bfaad54ce444b46830d58 (diff) | |
| parent | 3c1ff93b4deea502cd8b0869839557cab2a28b71 (diff) | |
regmap: Implement regmap_multi_reg_read()
Merge series from Guenter Roeck <linux@roeck-us.net>:
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().
Diffstat (limited to 'include/linux/regmap.h')
| -rw-r--r-- | include/linux/regmap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 2da1cfc52233..122e38161acb 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); |
