thermal/drivers/int340x: Do not check the thermal zone state
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 7 Jul 2023 20:37:31 +0000 (22:37 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 14 Jul 2023 18:46:02 +0000 (20:46 +0200)
commite49c8ed8e0ec29d3ae8cb6342cad147d9738bfbe
tree9589310803facfced33d2fc876894a955143ded3
parent12ad93ab6eeb0c30dbcb5df7f72415a092f6f191
thermal/drivers/int340x: Do not check the thermal zone state

The driver is accessing the thermal zone state to ensure the state is
different from the one we want to set.

We don't want the driver to access the thermal zone device internals.

Actually, the thermal core code already checks if the thermal zone's
state is different before calling this function, thus this check is
duplicate.

Remove it.

Acked-by: srinivas pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/intel/int340x_thermal/int3400_thermal.c