[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0325540ba8be0a3dc4083d22e484a8a31fb2a892.1659715931.git.gszymaszek@short.pl>
Date: Fri, 5 Aug 2022 18:27:53 +0200
From: Grzegorz Szymaszek <gszymaszek@...rt.pl>
To: Larry Finger <Larry.Finger@...inger.net>,
Greg KH <gregkh@...uxfoundation.org>,
Phillip Potter <phil@...lpotter.co.uk>
Cc: Philipp Hortmann <philipp.g.hortmann@...il.com>,
Grzegorz Szymaszek <gszymaszek@...rt.pl>,
linux-kernel@...r.kernel.org, linux-staging@...ts.linux.dev
Subject: [PATCH v2 2/4] staging: r8188eu: use KBUILD_MODNAME instead of a
string constant
The field .usbdrv.name of the struct rtw_usb_drv hardcoded the module
(driver) name as a constant string. Replace the string with the
KBUILD_MODNAME macro.
Link: https://lore.kernel.org/lkml/Yuy7QSh%2FclQ5Ki09@kroah.com/
Suggested-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Signed-off-by: Grzegorz Szymaszek <gszymaszek@...rt.pl>
---
V1 -> V2: Split v1-0002 into v2-0002 and v2-0003. Replace the constant
string with KBUILD_MODNAME instead of DRV_NAME
drivers/staging/r8188eu/os_dep/usb_intf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/r8188eu/os_dep/usb_intf.c b/drivers/staging/r8188eu/os_dep/usb_intf.c
index 68869c5daeff..b845f5ec5489 100644
--- a/drivers/staging/r8188eu/os_dep/usb_intf.c
+++ b/drivers/staging/r8188eu/os_dep/usb_intf.c
@@ -54,7 +54,7 @@ struct rtw_usb_drv {
};
static struct rtw_usb_drv rtl8188e_usb_drv = {
- .usbdrv.name = "r8188eu",
+ .usbdrv.name = KBUILD_MODNAME,
.usbdrv.probe = rtw_drv_init,
.usbdrv.disconnect = rtw_dev_remove,
.usbdrv.id_table = rtw_usb_id_tbl,
--
2.35.1
Powered by blists - more mailing lists