Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1283594

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

From Manish Badarkhe <badarkhe.manish@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/4] thermal: rcar: enable to use thermal-zone on DT
Date 2015-12-04 07:30 +0100
Message-ID <qBS2t-7wi-1@gated-at.bofh.it> (permalink)
References <qBP4B-5Gb-1@gated-at.bofh.it> <qBS2t-7wi-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] enable to use thermal-zone on r8a7790/1 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> - 2015-12-04 04:20 +0100
  Re: [PATCH 2/4] thermal: rcar: enable to use thermal-zone on DT Manish Badarkhe <badarkhe.manish@gmail.com> - 2015-12-04 07:30 +0100
  Re: [PATCH 2/4] thermal: rcar: enable to use thermal-zone on DT Geert Uytterhoeven <geert@linux-m68k.org> - 2015-12-04 09:40 +0100
  Re: [PATCH 2/4] thermal: rcar: enable to use thermal-zone on DT Geert Uytterhoeven <geert@linux-m68k.org> - 2015-12-04 09:40 +0100
  Re: [PATCH 3/4] ARM: shmobile: r8a7790: enable to use thermal-zone Simon Horman <horms@verge.net.au> - 2015-12-07 07:40 +0100

csiph-web