Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Deepin-Kernel-SIG] [linux-6.6.y] wifi: rtw89: get release driver version via more convenient method #480

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion drivers/net/wireless/realtek/rtw89/drv_ver.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
static char drv_ver[] = "v6.8-backport-6.6-1-g809f4dd07";
#define VERSTR "v6.8-backport-6.6-1-g809f4dd07"

static char *drv_ver = VERSTR;
#include <linux/module.h>
module_param_string(drv_ver, drv_ver, sizeof(drv_ver), 0444);

MODULE_PARM_DESC(drv_ver, VERSTR);

static int __init rtw89_drv_init(void)
{
printk("rtw89 drv init version: %s\n", VERSTR);

return 0;
}

static void __exit rtw89_drv_exit(void)
{
printk("rtw89 drv exit\n");
}

module_init(rtw89_drv_init);
module_exit(rtw89_drv_exit);
Loading