projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
323edb2
)
watchdog: cadence_wdt: Enable access to module parameters
author
Michal Simek
<michal.simek@xilinx.com>
Fri, 4 Aug 2017 07:39:16 +0000
(09:39 +0200)
committer
Wim Van Sebroeck
<wim@iguana.be>
Sat, 9 Sep 2017 18:33:29 +0000
(20:33 +0200)
Give read access to module parameters to all and write access to root.
This change also improves driver error path testing.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/cadence_wdt.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/watchdog/cadence_wdt.c
b/drivers/watchdog/cadence_wdt.c
index 05c000081e9da8c54fdf443055aa2257941c9456..dadd3b0c2d490a6c155589e2dedd38379baa8fe6 100644
(file)
--- a/
drivers/watchdog/cadence_wdt.c
+++ b/
drivers/watchdog/cadence_wdt.c
@@
-52,12
+52,12
@@
static int wdt_timeout;
static int nowayout = WATCHDOG_NOWAYOUT;
-module_param(wdt_timeout, int, 0);
+module_param(wdt_timeout, int, 0
644
);
MODULE_PARM_DESC(wdt_timeout,
"Watchdog time in seconds. (default="
__MODULE_STRING(CDNS_WDT_DEFAULT_TIMEOUT) ")");
-module_param(nowayout, int, 0);
+module_param(nowayout, int, 0
644
);
MODULE_PARM_DESC(nowayout,
"Watchdog cannot be stopped once started (default="
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");