Skip to content

Commit

Permalink
thermal/drivers/k3_j72xx_bandgap: Fix the debug print message
Browse files Browse the repository at this point in the history
[ Upstream commit a7c42af ]

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

Fixes: ffcb2fc ("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>
  • Loading branch information
Keerthyj authored and gregkh committed Dec 31, 2022
1 parent db9d0e7 commit 8eeda65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thermal/k3_j72xx_bandgap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8eeda65

Please sign in to comment.