thermal/drivers/k3_j72xx_bandgap: Fix the debug print message

[ Upstream commit a7c42af78b19a11e98a5555a664c343e3a672632 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Keerthy 2022-10-10 09:11:26 +05:30 committed by Greg Kroah-Hartman
parent db9d0e74a6
commit 8eeda6567c

View File

@ -439,7 +439,7 @@ static int k3_j72xx_bandgap_probe(struct platform_device *pdev)
workaround_needed = false; workaround_needed = false;
dev_dbg(bgp->dev, "Work around %sneeded\n", dev_dbg(bgp->dev, "Work around %sneeded\n",
workaround_needed ? "not " : ""); workaround_needed ? "" : "not ");
if (!workaround_needed) if (!workaround_needed)
init_table(5, ref_table, golden_factors); init_table(5, ref_table, golden_factors);