Thread (5 messages) flat view 5 messages, 3 authors, 2014-12-18

[PATCH v3 1/2] watchdog: Add driver for Mediatek watchdog

From: joe@perches.com (Joe Perches)
Date: 2014-12-18 01:47:52
Also in: linux-watchdog, lkml

On Wed, 2014-12-17 at 17:37 -0800, Guenter Roeck wrote:
On Wed, Dec 17, 2014 at 10:18:04PM +0100, Matthias Brugger wrote:
quoted
This patch adds a driver for the Mediatek SoC integrated
watchdog. This driver supports watchdog and software reset
for mt65xx and mt81xx SoCs.
[]
quoted
diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c
[]
quoted
+static int mtk_reset_handler(struct notifier_block *this, unsigned long mode,
+				void *cmd)
+{
+	struct mtk_wdt_dev *mtk_wdt = container_of(this,
+						       struct mtk_wdt_dev,
+						       restart_handler);
I don't really understand the indentation logic you are using.
Can you make it consistent ?

I would suggest to align with '(' in the previous line.
Another way is to separate the declaration and the set

	struct mtk_wdt_dev *mtk_wdt;
	void __iomem *wdt_base;

	mtk_wdt = container_of(this, struct mtk_wdt_dev, restart_handler);
	wdt_base = mtk_wdt->wdt_base;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help