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>
This commit is contained in:
@@ -1187,7 +1187,7 @@ int rtl8169_initialize(struct bd_info *bis)
|
||||
#ifdef CONFIG_DM_ETH
|
||||
static int rtl8169_eth_probe(struct udevice *dev)
|
||||
{
|
||||
struct pci_child_platdata *pplat = dev_get_parent_platdata(dev);
|
||||
struct pci_child_platdata *pplat = dev_get_parent_plat(dev);
|
||||
struct rtl8169_private *priv = dev_get_priv(dev);
|
||||
struct eth_pdata *plat = dev_get_platdata(dev);
|
||||
u32 iobase;
|
||||
@@ -1249,7 +1249,7 @@ U_BOOT_DRIVER(eth_rtl8169) = {
|
||||
.probe = rtl8169_eth_probe,
|
||||
.ops = &rtl8169_eth_ops,
|
||||
.priv_auto = sizeof(struct rtl8169_private),
|
||||
.platdata_auto = sizeof(struct eth_pdata),
|
||||
.plat_auto = sizeof(struct eth_pdata),
|
||||
};
|
||||
|
||||
U_BOOT_PCI_DEVICE(eth_rtl8169, supported);
|
||||
|
||||
Reference in New Issue
Block a user