summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/k3_j72xx_bandgap.c
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2022-10-10 05:41:26 +0200
committerDaniel Lezcano <daniel.lezcano@kernel.org>2022-12-14 15:25:39 +0100
commita7c42af78b19a11e98a5555a664c343e3a672632 (patch)
treea1f8f2d560639049b75f2c36f7a6fd35c08a3eeb /drivers/thermal/k3_j72xx_bandgap.c
parentdt-bindings: thermal: Convert generic-adc-thermal to DT schema (diff)
downloadlinux-a7c42af78b19a11e98a5555a664c343e3a672632.tar.xz
linux-a7c42af78b19a11e98a5555a664c343e3a672632.zip
thermal/drivers/k3_j72xx_bandgap: Fix the debug print message
The debug print message to check the workaround applicability is inverted. Fix the same. Fixes: ffcb2fc86eb7 ("thermal: k3_j72xx_bandgap: Add the bandgap driver support") Reported-by: Bryan Brattlof <bb@ti.com> Signed-off-by: Keerthy <j-keerthy@ti.com> Link: https://lore.kernel.org/r/20221010034126.3550-1-j-keerthy@ti.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/thermal/k3_j72xx_bandgap.c')
-rw-r--r--drivers/thermal/k3_j72xx_bandgap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/k3_j72xx_bandgap.c b/drivers/thermal/k3_j72xx_bandgap.c
index 16b6bcf1bf4f..c073b1023bbe 100644
--- a/drivers/thermal/k3_j72xx_bandgap.c
+++ b/drivers/thermal/k3_j72xx_bandgap.c
@@ -439,7 +439,7 @@ static int k3_j72xx_bandgap_probe(struct platform_device *pdev)
workaround_needed = false;
dev_dbg(bgp->dev, "Work around %sneeded\n",
- workaround_needed ? "not " : "");
+ workaround_needed ? "" : "not ");
if (!workaround_needed)
init_table(5, ref_table, golden_factors);