watchdog: (nct7904) Fix enable watchdog incorrectly
Guenter Roeck
maintainerQuoted 5 lines · On Wed, May 13, 2020 at 11:00:15AM +0000, [email protected] wrote:
From: Yuechao Zhao <[email protected]>
Use incorrect register to enable watchdog in
nct7904_wdt_ping()Signed-off-by Yuechao Zhao <[email protected]>
I merged this patch into the patch introducing watchdog support.
Thanks,
Guenter
Quoted 20 lines
--- drivers/hwmon/nct7904.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/hwmon/nct7904.c +1
-1@@ -979,7 +979,7 @@ static int nct7904_wdt_ping(struct watchdog_device *wdt)return ret;/* Enable soft watchdog timer */ -return nct7904_write_reg (data,BANK_0 ,WDT_TIMER_REG ,WDT_SOFT_EN ); +return nct7904_write_reg (data,BANK_0 ,WDT_LOCK_REG ,WDT_SOFT_EN ); }static unsigned int nct7904_wdt_get_timeleft (struct watchdog_device *wdt)Signature · 1 line
1.8.3.1