Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Binbin Zhou and committed by
Wim Van Sebroeck
f909b3d4 f0a4bf61

+6 -2
+6 -2
drivers/watchdog/loongson1_wdt.c
··· 18 18 #define DEFAULT_HEARTBEAT 30 19 19 20 20 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) ")"); 22 24 23 25 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) ")"); 25 29 26 30 struct ls1x_wdt_drvdata { 27 31 void __iomem *base;