[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5795136.lOV4Wx5bFT@eto.sf-tec.de>
Date: Mon, 14 Feb 2022 19:33:07 +0100
From: Rolf Eike Beer <eike-kernel@...tec.de>
To: netdev@...r.kernel.org
Subject: [PATCH 2/3 v2] sunhme: fix the version number in struct ethtool_drvinfo
The driver prints a version number on startup, use the same one here.
Fixes: 050bbb196392 ("[NET] sunhme: Convert to new SBUS driver framework.")
Signed-off-by: Rolf Eike Beer <eike-kernel@...tec.de>
---
v2: correct "Fixes" line syntax
drivers/net/ethernet/sun/sunhme.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/sun/sunhme.c b/drivers/net/ethernet/sun/sunhme.c
index 22abfe58f728..43834339bb43 100644
--- a/drivers/net/ethernet/sun/sunhme.c
+++ b/drivers/net/ethernet/sun/sunhme.c
@@ -2470,8 +2470,8 @@ static void hme_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info
{
struct happy_meal *hp = netdev_priv(dev);
- strlcpy(info->driver, "sunhme", sizeof(info->driver));
- strlcpy(info->version, "2.02", sizeof(info->version));
+ strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
+ strlcpy(info->version, DRV_VERSION, sizeof(info->version));
if (hp->happy_flags & HFLAG_PCI) {
struct pci_dev *pdev = hp->happy_dev;
strlcpy(info->bus_info, pci_name(pdev), sizeof(info->bus_info));
--
2.34.1
Powered by blists - more mailing lists