mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
thermal/drivers/renesas/rzg3e: Remove unneeded low/high check in set_trips()
The hardware manual doesn't specify that the trip settings must be strictly low < high, just that when the CMPCOND bit is 0, an interrupt will be raised when the acquired temperature data is > ULIM or < LLIM. Also, the thermal core already guarantees low < high. Remove the redundant check. Signed-off-by: Ovidiu Panait <ovidiu.panait.rb@renesas.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org> Link: https://patch.msgid.link/20260916120003.87018-5-ovidiu.panait.rb@renesas.com
This commit is contained in:
parent
acd9bf8f90
commit
a5f1de6d78
|
|
@ -275,10 +275,6 @@ static int rzg3e_thermal_set_trips(struct thermal_zone_device *tz,
|
|||
u32 val;
|
||||
int ret;
|
||||
|
||||
/* Hardware requires low < high */
|
||||
if (low >= high)
|
||||
return -EINVAL;
|
||||
|
||||
ret = pm_runtime_resume_and_get(priv->dev);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user