Thread (17 messages) 17 messages, 6 authors, 2018-10-15

Re: [PATCH v3 8/8] watchdog: stpmic1: add stpmic1 watchdog driver

From: Guenter Roeck <linux@roeck-us.net>
Date: 2018-10-09 21:44:55
Also in: linux-devicetree, linux-watchdog, lkml

On Tue, Oct 09, 2018 at 08:47:26AM +0800, kbuild test robot wrote:
Hi pascal,

Thank you for the patch! Perhaps something to improve:
[ ... ]
    42	
    43	static int pmic_wdt_stop(struct watchdog_device *wdd)
    44	{
    45		struct stpmic1_wdt *wdt = watchdog_get_drvdata(wdd);
    46	
    47		return regmap_update_bits(wdt->pmic->regmap,
  > 48					  WCHDG_CR, WDT_START_MASK, ~WDT_START);
Maybe use

#define WDT_STOP	0

instead, or just write 0. ~WDT_START may be convenient but not really correct.

Guenter
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help