Skip to content

Commit 396ee4d

Browse files
Matthew Garrettzhang-rui
authored andcommitted
thermal/int340x_thermal: fix mode setting
int3400 only pushes the UUID into the firmware when the mode is flipped to "enable". The current code only exposes the mode flag if the firmware supports the PASSIVE_1 UUID, which not all machines do. Remove the restriction. Signed-off-by: Matthew Garrett <[email protected]> Signed-off-by: Zhang Rui <[email protected]>
1 parent 16fc8ec commit 396ee4d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/thermal/intel/int340x_thermal/int3400_thermal.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,9 @@ static int int3400_thermal_probe(struct platform_device *pdev)
313313

314314
platform_set_drvdata(pdev, priv);
315315

316-
if (priv->uuid_bitmap & 1 << INT3400_THERMAL_PASSIVE_1) {
317-
int3400_thermal_ops.get_mode = int3400_thermal_get_mode;
318-
int3400_thermal_ops.set_mode = int3400_thermal_set_mode;
319-
}
316+
int3400_thermal_ops.get_mode = int3400_thermal_get_mode;
317+
int3400_thermal_ops.set_mode = int3400_thermal_set_mode;
318+
320319
priv->thermal = thermal_zone_device_register("INT3400 Thermal", 0, 0,
321320
priv, &int3400_thermal_ops,
322321
&int3400_thermal_params, 0, 0);

0 commit comments

Comments
 (0)