Skip to content

Commit f909b3d

Browse files
AaronDotWim Van Sebroeck
authored andcommitted
watchdog: loongson1: Add missing MODULE_PARM_DESC
Add documentation for module_param so that they're visible with modinfo command. Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent f0a4bf6 commit f909b3d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

drivers/watchdog/loongson1_wdt.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,14 @@
1818
#define DEFAULT_HEARTBEAT 30
1919

2020
static bool nowayout = WATCHDOG_NOWAYOUT;
21-
module_param(nowayout, bool, 0444);
21+
module_param(nowayout, bool, 0);
22+
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
23+
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
2224

2325
static unsigned int heartbeat;
24-
module_param(heartbeat, uint, 0444);
26+
module_param(heartbeat, uint, 0);
27+
MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (default="
28+
__MODULE_STRING(DEFAULT_HEARTBEAT) ")");
2529

2630
struct ls1x_wdt_drvdata {
2731
void __iomem *base;

0 commit comments

Comments
 (0)