Skip to content

Commit 1fa34e4

Browse files
committed
thermal/drivers/rcar: Remove notification usage
The ops is only showing a trace telling a critical trip point is crossed. The same information is given by the thermal framework. This is redundant, remove the code. Signed-off-by: Daniel Lezcano <[email protected]> Reviewed-by: Niklas Söderlund <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d7203ee commit 1fa34e4

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

drivers/thermal/rcar_thermal.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -323,24 +323,6 @@ static int rcar_thermal_get_trip_temp(struct thermal_zone_device *zone,
323323
return 0;
324324
}
325325

326-
static int rcar_thermal_notify(struct thermal_zone_device *zone,
327-
int trip, enum thermal_trip_type type)
328-
{
329-
struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone);
330-
struct device *dev = rcar_priv_to_dev(priv);
331-
332-
switch (type) {
333-
case THERMAL_TRIP_CRITICAL:
334-
/* FIXME */
335-
dev_warn(dev, "Thermal reached to critical temperature\n");
336-
break;
337-
default:
338-
break;
339-
}
340-
341-
return 0;
342-
}
343-
344326
static const struct thermal_zone_of_device_ops rcar_thermal_zone_of_ops = {
345327
.get_temp = rcar_thermal_of_get_temp,
346328
};
@@ -349,7 +331,6 @@ static struct thermal_zone_device_ops rcar_thermal_zone_ops = {
349331
.get_temp = rcar_thermal_get_temp,
350332
.get_trip_type = rcar_thermal_get_trip_type,
351333
.get_trip_temp = rcar_thermal_get_trip_temp,
352-
.notify = rcar_thermal_notify,
353334
};
354335

355336
/*

0 commit comments

Comments
 (0)