summaryrefslogtreecommitdiff
path: root/include/regmap.h
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-01-11 14:29:49 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-01-12 15:57:51 +0100
commit6096c133e989c4a14aac173e94d86412bb92957b (patch)
tree091019edae5553c31a7600944b44a376ac765dc6 /include/regmap.h
parent89174a78752c6acad30e8f2dbc9fd97bcf236cec (diff)
downloadbarebox-6096c133e989c4a14aac173e94d86412bb92957b.tar.gz
regmap: factor out regmap cdev size calculation
We will add a new user of this calculate in a follow-up commit, so make it available as a global function. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230111132956.1153359-5-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/regmap.h')
-rw-r--r--include/regmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/regmap.h b/include/regmap.h
index 8f191c87cf..986ed391ab 100644
--- a/include/regmap.h
+++ b/include/regmap.h
@@ -204,6 +204,8 @@ static inline int regmap_clear_bits(struct regmap *map,
return regmap_update_bits(map, reg, bits, 0);
}
+size_t regmap_size_bytes(struct regmap *map);
+
/**
* regmap_read_poll_timeout - Poll until a condition is met or a timeout occurs
*