From: Jerry Hoemann Date: Wed, 8 Aug 2018 19:13:26 +0000 (-0600) Subject: watchdog: hpwdt: Module paramerter alias. X-Git-Tag: v4.20-rc1~87^2~26 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=397a35d418a20453952d707d4b97bae6ac3053ca;p=linux-block.git watchdog: hpwdt: Module paramerter alias. Add module parameter "timeout" as an alias to "soft_margin." This aligns hpwdt usage more closely with other WDT while retaining backwards compatibility. Signed-off-by: Jerry Hoemann Reviewed-by: Guenter Roeck Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c index 69a88b192dd8..eb947bc25915 100644 --- a/drivers/watchdog/hpwdt.c +++ b/drivers/watchdog/hpwdt.c @@ -367,6 +367,9 @@ MODULE_VERSION(HPWDT_VERSION); module_param(soft_margin, int, 0); MODULE_PARM_DESC(soft_margin, "Watchdog timeout in seconds"); +module_param_named(timeout, soft_margin, int, 0); +MODULE_PARM_DESC(timeout, "Alias of soft_margin"); + module_param(nowayout, bool, 0); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");