mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
committed by
Tom Rini
parent
5ccc2c2130
commit
d35812368a
@@ -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
|
||||
|
Reference in New Issue
Block a user