diff mbox series

[05/13] net: fsl_enetc: Rename the driver and related structures

Message ID 20250116040449.306098-5-marex@denx.de
State Accepted
Commit e091e49afe0c47f5884928f42dd29c980478d3e7
Delegated to: Fabio Estevam
Headers show
Series [01/13] net: fsl_enetc: Introduce enetc_is_ls1028a() | expand

Commit Message

Marek Vasut Jan. 16, 2025, 4:03 a.m. UTC
Rename the current driver structure and matching ops and PCI IDs
and add _ls suffix to indicate this content is LS specific. This
is done in preparation for addition of i.MX95 ENETCv4 which will
require slightly different structure content.

Signed-off-by: Marek Vasut <marex@denx.de>
---
Cc: Alice Guo <alice.guo@nxp.com>
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Cc: Jerome Forissier <jerome.forissier@linaro.org>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Markus Gothe <markus.gothe@genexis.eu>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Ramon Fried <rfried.dev@gmail.com>
Cc: Robert Marko <robert.marko@sartura.hr>
Cc: Romain Naour <romain.naour@smile.fr>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tim Harvey <tharvey@gateworks.com>
Cc: Tom Rini <trini@konsulko.com>
Cc: Ye Li <ye.li@nxp.com>
Cc: u-boot@lists.denx.de
---
 drivers/net/fsl_enetc.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/drivers/net/fsl_enetc.c b/drivers/net/fsl_enetc.c
index 615646b76a3..639853539a1 100644
--- a/drivers/net/fsl_enetc.c
+++ b/drivers/net/fsl_enetc.c
@@ -689,7 +689,7 @@  static int enetc_recv(struct udevice *dev, int flags, uchar **packetp)
 	return len;
 }
 
-static const struct eth_ops enetc_ops = {
+static const struct eth_ops enetc_ops_ls = {
 	.start	= enetc_start,
 	.send	= enetc_send,
 	.recv	= enetc_recv,
@@ -697,20 +697,20 @@  static const struct eth_ops enetc_ops = {
 	.write_hwaddr = enetc_write_hwaddr,
 };
 
-U_BOOT_DRIVER(eth_enetc) = {
+U_BOOT_DRIVER(eth_enetc_ls) = {
 	.name	= ENETC_DRIVER_NAME,
 	.id	= UCLASS_ETH,
 	.bind	= enetc_bind,
 	.probe	= enetc_probe,
 	.remove = enetc_remove,
-	.ops	= &enetc_ops,
+	.ops	= &enetc_ops_ls,
 	.priv_auto	= sizeof(struct enetc_priv),
 	.plat_auto	= sizeof(struct eth_pdata),
 };
 
-static struct pci_device_id enetc_ids[] = {
+static struct pci_device_id enetc_ids_ls[] = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_FREESCALE, PCI_DEVICE_ID_ENETC_ETH) },
 	{}
 };
 
-U_BOOT_PCI_DEVICE(eth_enetc, enetc_ids);
+U_BOOT_PCI_DEVICE(eth_enetc_ls, enetc_ids_ls);