mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-30 02:51:33 +00:00
pinctrl: stmfx: update pincontrol and gpio device name
The device name is used in pinmux command and in log trace so it is better to use the parent parent name ("stmfx@42" for example) than a generic name ("pinctrl" or "stmfx-gpio") to identify the device instance. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
This commit is contained in:
parent
2c6df94c83
commit
c2a8181d45
1 changed files with 4 additions and 1 deletions
|
@ -408,8 +408,11 @@ static int stmfx_pinctrl_bind(struct udevice *dev)
|
|||
{
|
||||
struct stmfx_pinctrl *plat = dev_get_platdata(dev);
|
||||
|
||||
/* subnode name is not explicit: use father name */
|
||||
device_set_name(dev, dev->parent->name);
|
||||
|
||||
return device_bind_driver_to_node(dev->parent,
|
||||
"stmfx-gpio", "stmfx-gpio",
|
||||
"stmfx-gpio", dev->parent->name,
|
||||
dev_ofnode(dev), &plat->gpio);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue