[U-Boot] [PATCH v11 09/16] regmap: Support reading from specific range
sjg at google.com
sjg at google.com
Wed Oct 24 17:35:34 UTC 2018
It is useful to be able to treat the different ranges of a regmap
separately to be able to use distinct offset for them, but this is
currently not implemented in the regmap API.
To preserve backwards compatibility, add regmap_read_range and
regmap_write_range functions that take an additional parameter
'range_num' that identifies the range to operate on.
Reviewed-by: Anatolij Gustschin <agust at denx.de>
Reviewed-by: Simon Glass <sjg at chromium.org>
Signed-off-by: Mario Six <mario.six at gdsys.cc>
---
v10 -> v11:
No changes
v9 -> v10:
No changes
v8 -> v9:
No changes
v7 -> v8:
No changes
v6 -> v7:
No changes
v5 -> v6:
No changes
v4 -> v5:
No changes
v3 -> v4:
No changes
v2 -> v3:
* Renamed the functions to regmap_{write,read}_range
* Added function comments
* Fixed style violations
* Improved error handling
v1 -> v2:
New in v2
---
drivers/core/regmap.c | 49 ++++++++++++++++++++++++++++++++++++++-----
include/regmap.h | 31 +++++++++++++++++++++++++++
2 files changed, 75 insertions(+), 5 deletions(-)
Applied to u-boot-dm/next, thanks!
More information about the U-Boot
mailing list