Skip to content

Commit 8888ef2

Browse files
AxelLinbroonie
authored andcommitted
regulator: bd9576: Fix testing wrong flag in check_temp_flag_mismatch
Fix trivial copy-paste typo. Signed-off-by: Axel Lin <[email protected]> Reviewed-by: Matti Vaittinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 5db5dd5 commit 8888ef2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/regulator/bd9576-regulator.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,9 @@ static bool check_temp_flag_mismatch(struct regulator_dev *rdev, int severity,
294294
struct bd957x_regulator_data *r)
295295
{
296296
if ((severity == REGULATOR_SEVERITY_ERR &&
297-
r->ovd_notif != REGULATOR_EVENT_OVER_TEMP) ||
297+
r->temp_notif != REGULATOR_EVENT_OVER_TEMP) ||
298298
(severity == REGULATOR_SEVERITY_WARN &&
299-
r->ovd_notif != REGULATOR_EVENT_OVER_TEMP_WARN)) {
299+
r->temp_notif != REGULATOR_EVENT_OVER_TEMP_WARN)) {
300300
dev_warn(rdev_get_dev(rdev),
301301
"Can't support both thermal WARN and ERR\n");
302302
if (severity == REGULATOR_SEVERITY_WARN)

0 commit comments

Comments
 (0)