From: Manish Badarkhe <badarkhe.manish@gmail.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Simon <horms@verge.net.au>, Zhang Rui <rui.zhang@intel.com>,
Eduardo Valentin <edubezval@gmail.com>,
Magnus <magnus.damm@gmail.com>,
linux-sh@vger.kernel.org, linux-pm@vger.kernel.org,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/4] thermal: rcar: enable to use thermal-zone on DT
Date: Fri, 04 Dec 2015 06:33:13 +0000 [thread overview]
Message-ID: <CAKDJKT47kHx9vNO_L_h085cJs3ACndiA9sQL7e2K5PtYySWJxA@mail.gmail.com> (raw)
In-Reply-To: <87y4dagb0i.wl%kuninori.morimoto.gx@renesas.com>
Hi
> +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.
Regards
Manish Badarkhe
next prev parent reply other threads:[~2015-12-04 6:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-04 3:16 [PATCH 0/4] enable to use thermal-zone on r8a7790/1 Kuninori Morimoto
2015-12-04 3:17 ` [PATCH 1/4] thermal: rcar: move rcar_thermal_dt_ids to upside Kuninori Morimoto
2015-12-04 3:17 ` [PATCH 2/4] thermal: rcar: enable to use thermal-zone on DT Kuninori Morimoto
2015-12-04 6:33 ` Manish Badarkhe [this message]
2015-12-04 7:07 ` Kuninori Morimoto
2015-12-04 8:32 ` Geert Uytterhoeven
[not found] ` <CAMuHMdUcQFcQuEmQZ4yMGwm=ouH+aQQhG3V95p=Pb56qWberQA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-12-04 8:34 ` Geert Uytterhoeven
2015-12-04 3:18 ` [PATCH 3/4] ARM: shmobile: r8a7790: enable to use thermal-zone Kuninori Morimoto
2015-12-07 6:34 ` Simon Horman
2015-12-04 3:18 ` [PATCH 4/4] ARM: shmobile: r8a7791: " Kuninori Morimoto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKDJKT47kHx9vNO_L_h085cJs3ACndiA9sQL7e2K5PtYySWJxA@mail.gmail.com \
--to=badarkhe.manish@gmail.com \
--cc=edubezval@gmail.com \
--cc=horms@verge.net.au \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=rui.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).