]> git.baikalelectronics.ru Git - kernel.git/commitdiff
thermal/drivers/k3_j72xx_bandgap: Fix the debug print message
authorKeerthy <j-keerthy@ti.com>
Mon, 10 Oct 2022 03:41:26 +0000 (09:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:43 +0000 (13:32 +0100)
[ Upstream commit c34eadccc26aa2dca63d329d51e8191e0bb03c96 ]

The debug print message to check the workaround applicability is inverted.
Fix the same.

Fixes: 3ab9721209c6 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/thermal/k3_j72xx_bandgap.c

index 16b6bcf1bf4fa171b9e7a0aa413a943f0cef4394..c073b1023bbe709184a46d4bd2cf38a6fc8c1472 100644 (file)
@@ -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);