diff options
author | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2017-10-06 11:53:02 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-10-16 10:35:26 +0200 |
commit | 25c3fb28d8017595942115d4dbffc16d96f43930 (patch) | |
tree | 229e15cc79b476c8fc8e7bf5437bc72ac6258dff /include/regmap.h | |
parent | 1cb2517f1b6715e15c5858947d5a1991b6c6c780 (diff) | |
download | barebox-25c3fb28d8017595942115d4dbffc16d96f43930.tar.gz barebox-25c3fb28d8017595942115d4dbffc16d96f43930.tar.xz |
regmap: port regmap_update_bits from linux
Port the regmap_update_bits function from linux v4.14-rc1 to barebox.
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/regmap.h')
-rw-r--r-- | include/regmap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/regmap.h b/include/regmap.h index 9675a17b96..09b7b57d52 100644 --- a/include/regmap.h +++ b/include/regmap.h @@ -62,6 +62,7 @@ int regmap_get_reg_stride(struct regmap *map); int regmap_write_bits(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val); - +int regmap_update_bits(struct regmap *map, unsigned int reg, + unsigned int mask, unsigned int val); #endif /* __REGMAP_H */ |