diff options
author | Marco Felsch <m.felsch@pengutronix.de> | 2019-11-04 11:28:05 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-11-05 11:07:51 +0100 |
commit | 7d3b130af9d282e9a5b788bd44d1ad6528a3bde1 (patch) | |
tree | 587bbe8936996f38e35e3b2e18b703ec83823343 /drivers/mfd | |
parent | d0c0d45237fbeda2e2dc96123eb315df544c27ac (diff) | |
download | barebox-7d3b130af9d282e9a5b788bd44d1ad6528a3bde1.tar.gz barebox-7d3b130af9d282e9a5b788bd44d1ad6528a3bde1.tar.xz |
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 <m.felsch@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/da9063.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ } |