From 7d3b130af9d282e9a5b788bd44d1ad6528a3bde1 Mon Sep 17 00:00:00 2001 From: Marco Felsch Date: Mon, 4 Nov 2019 11:28:05 +0100 Subject: mfd: da9063: fix TWDSCALE debug message The TWDSCALE is the found scale + 1 as described in the datasheets for the DA9062/3 devices. The driver logic is correct just the debug message is wrong. Signed-off-by: Marco Felsch Signed-off-by: Sascha Hauer --- drivers/mfd/da9063.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/da9063.c b/drivers/mfd/da9063.c index b61e764876..7099c48703 100644 --- a/drivers/mfd/da9063.c +++ b/drivers/mfd/da9063.c @@ -270,7 +270,7 @@ static int da9063_watchdog_set_timeout(struct watchdog *wd, unsigned timeout) while (timeout > (2048 << scale) && scale <= 6) scale++; dev_dbg(dev, "calculated TWDSCALE=%u (req=%ims calc=%ims)\n", - scale, timeout, 2048 << scale); + scale + 1, timeout, 2048 << scale); scale++; /* scale 0 disables the WD */ } -- cgit v1.2.3