Re: [PATCH 2/4] thermal: rcar: enable to use thermal-zone on DT

From
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Date
2015-12-04 07:08:04
Also in
linux-sh, lkml
Reply to
Manish Badarkhe, 2015-12-04
Hi Manish
quoted
+static int rcar_thermal_of_get_temp(void *data, int *temp)
+{
+       struct rcar_thermal_priv *priv = data;
+
+       *temp = rcar_thermal_get_current_temp(priv);
+
+       return 0;
+}
+
+static int rcar_thermal_get_temp(struct thermal_zone_device *zone, int *temp)
+{
+       struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone);
+
+       *temp = rcar_thermal_get_current_temp(priv);
+
        return 0;
 }
Above two function, always returns 0. Can it possible to handle error
and log some messages.
Thanks. Will try in v2
Thread (10 messages) 10 messages, 4 authors, last reply 2015-12-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help