[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210329161939.37680-2-srinivas.neeli@xilinx.com>
Date: Mon, 29 Mar 2021 21:49:35 +0530
From: Srinivas Neeli <srinivas.neeli@...inx.com>
To: <linux@...ck-us.net>, <shubhraj@...inx.com>, <sgoud@...inx.com>,
<michal.simek@...inx.com>
CC: <wim@...ux-watchdog.org>, <linux-watchdog@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <git@...inx.com>,
Srinivas Goud <srinivas.goud@...inx.com>,
Srinivas Neeli <srinivas.neeli@...inx.com>
Subject: [PATCH V2 1/5] watchdog: of_xilinx_wdt: Add comment to spinlock
From: Srinivas Goud <srinivas.goud@...inx.com>
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: Srinivas Goud <srinivas.goud@...inx.com>
Signed-off-by: Michal Simek <michal.simek@...inx.com>
Signed-off-by: Srinivas Neeli <srinivas.neeli@...inx.com>
Reviewed-by: Guenter Roeck <linux@...ck-us.net>
---
drivers/watchdog/of_xilinx_wdt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/watchdog/of_xilinx_wdt.c b/drivers/watchdog/of_xilinx_wdt.c
index 7fe4f7c3f7ce..00549164b3d7 100644
--- a/drivers/watchdog/of_xilinx_wdt.c
+++ b/drivers/watchdog/of_xilinx_wdt.c
@@ -40,7 +40,7 @@
struct xwdt_device {
void __iomem *base;
u32 wdt_interval;
- spinlock_t spinlock;
+ spinlock_t spinlock; /* spinlock for register handling */
struct watchdog_device xilinx_wdt_wdd;
struct clk *clk;
};
--
2.9.1
Powered by blists - more mailing lists