diff options
| author | Richard Fitzgerald <rf@opensource.cirrus.com> | 2024-12-11 16:35:58 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2024-12-11 17:24:09 +0300 |
| commit | eb708cd631a8dca17ff004ccc39bbeb096c1db22 (patch) | |
| tree | 5b33007993b4a0cb9bc3e84d24c278ba6eef95ca /include | |
| parent | 1331fb6640440f42a709eafd5c802f3496f746b8 (diff) | |
| download | linux-eb708cd631a8dca17ff004ccc39bbeb096c1db22.tar.xz | |
regmap: regmap_multi_reg_read(): make register list const
Mark the list of registers passed into regmap_multi_reg_read() as a
pointer to const. This allows the caller to define the register list
as const data.
This requires making the same change to _regmap_bulk_read(), which is
called by regmap_multi_reg_read().
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20241211133558.884669-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/regmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index fd41baccbf3e..3871c74f7677 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -1244,7 +1244,7 @@ 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, +int regmap_multi_reg_read(struct regmap *map, const 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, |
