diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-03 16:55:18 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-12-13 16:51:08 -0700 |
commit | caa4daa2ae3dc0a3e516addea5772c9af76abcb0 (patch) | |
tree | 0abbc5b538894532f4db28d56e4645d3be230d27 /net/mdio-mux-uclass.c | |
parent | 41575d8e4c334df148c4cdd7c40cc825dc0fcaa1 (diff) | |
download | u-boot-caa4daa2ae3dc0a3e516addea5772c9af76abcb0.zip u-boot-caa4daa2ae3dc0a3e516addea5772c9af76abcb0.tar.gz u-boot-caa4daa2ae3dc0a3e516addea5772c9af76abcb0.tar.bz2 |
dm: treewide: Rename 'platdata' variables to just 'plat'
We use 'priv' for private data but often use 'platdata' for platform data.
We can't really use 'pdata' since that is ambiguous (it could mean private
or platform data).
Rename some of the latter variables to end with 'plat' for consistency.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'net/mdio-mux-uclass.c')
-rw-r--r-- | net/mdio-mux-uclass.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mdio-mux-uclass.c b/net/mdio-mux-uclass.c index 3fb4184..5f38f9f 100644 --- a/net/mdio-mux-uclass.c +++ b/net/mdio-mux-uclass.c @@ -65,7 +65,7 @@ static int mmux_change_sel(struct udevice *ch, bool sel) struct udevice *mux = ch->parent; struct mdio_mux_perdev_priv *priv = dev_get_uclass_priv(mux); struct mdio_mux_ops *ops = mdio_mux_get_ops(mux); - struct mdio_mux_ch_data *ch_data = dev_get_parent_platdata(ch); + struct mdio_mux_ch_data *ch_data = dev_get_parent_plat(ch); int err = 0; if (sel) { @@ -147,7 +147,7 @@ static int mmux_reset(struct udevice *ch) /* Picks up the mux selection value for each child */ static int dm_mdio_mux_child_post_bind(struct udevice *ch) { - struct mdio_mux_ch_data *ch_data = dev_get_parent_platdata(ch); + struct mdio_mux_ch_data *ch_data = dev_get_parent_plat(ch); ch_data->sel = dev_read_u32_default(ch, "reg", MDIO_MUX_SELECT_NONE); @@ -229,5 +229,5 @@ UCLASS_DRIVER(mdio_mux) = { .post_bind = dm_mdio_mux_post_bind, .post_probe = dm_mdio_mux_post_probe, .per_device_auto = sizeof(struct mdio_mux_perdev_priv), - .per_child_platdata_auto = sizeof(struct mdio_mux_ch_data), + .per_child_plat_auto = sizeof(struct mdio_mux_ch_data), }; |