[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87k2oug0cy.wl%kuninori.morimoto.gx@renesas.com>
Date: Fri, 4 Dec 2015 07:07:54 +0000
From: Kuninori Morimoto <kuninori.morimoto.gx@...esas.com>
To: Manish Badarkhe <badarkhe.manish@...il.com>
CC: Simon <horms@...ge.net.au>, Zhang Rui <rui.zhang@...el.com>,
Eduardo Valentin <edubezval@...il.com>,
Magnus <magnus.damm@...il.com>, <linux-sh@...r.kernel.org>,
<linux-pm@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 2/4] thermal: rcar: enable to use thermal-zone on DT
Hi Manish
> > +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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists