diff options
author | Masahiro Yamada | 2018-04-19 12:14:03 +0900 |
---|---|---|
committer | Tom Rini | 2018-05-07 15:49:51 -0400 |
commit | d35812368a590ebe1a5c92199a1a57ce3e80722e (patch) | |
tree | c1ff594293463470564010fd57e7cbbd03bb35a0 /include | |
parent | 5ccc2c21307e186722ca9966bad0e03189c237c5 (diff) |
regmap: change regmap_init_mem() to take ofnode instead udevice
Currently, regmap_init_mem() takes a udevice. This requires the node
has already been associated with a device. It prevents syscon/regmap
from behaving like those in Linux.
Change the first argumenet to take a device node.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/regmap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/regmap.h b/include/regmap.h index d827a0bd523..e96c79dd26a 100644 --- a/include/regmap.h +++ b/include/regmap.h @@ -47,10 +47,10 @@ int regmap_read(struct regmap *map, uint offset, uint *valp); * * Use regmap_uninit() to free it. * - * @dev: Device that uses this map + * @node: Device node that uses this map * @mapp: Returns allocated map */ -int regmap_init_mem(struct udevice *dev, struct regmap **mapp); +int regmap_init_mem(ofnode node, struct regmap **mapp); /** * regmap_init_mem_platdata() - Set up a new memory register map for of-platdata |