Commit b2802e78 authored by Srinivas Goud's avatar Srinivas Goud Committed by Wim Van Sebroeck

watchdog: of_xilinx_wdt: Add comment to spinlock

Based on checkpatch every spinlock should be documented.
The patch is fixing this issue:
./scripts/checkpatch.pl --strict -f drivers/watchdog/of_xilinx_wdt.c
CHECK: spinlock_t definition without comment
+	spinlock_t spinlock;
Signed-off-by: default avatarSrinivas Goud <srinivas.goud@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarSrinivas Neeli <srinivas.neeli@xilinx.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210329161939.37680-2-srinivas.neeli@xilinx.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent 0a1186e4
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
struct xwdt_device { struct xwdt_device {
void __iomem *base; void __iomem *base;
u32 wdt_interval; u32 wdt_interval;
spinlock_t spinlock; spinlock_t spinlock; /* spinlock for register handling */
struct watchdog_device xilinx_wdt_wdd; struct watchdog_device xilinx_wdt_wdd;
struct clk *clk; struct clk *clk;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment