[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160420234818.GB2558@localhost.localdomain>
Date: Wed, 20 Apr 2016 16:48:18 -0700
From: Eduardo Valentin <edubezval@...il.com>
To: Caesar Wang <wxt@...k-chips.com>
Cc: Heiko Stuebner <heiko@...ech.de>, dianders@...omium.org,
briannorris@...gle.com, smbarber@...gle.com,
linux-rockchip@...ts.infradead.org,
Mikko Perttunen <mperttunen@...dia.com>,
Paul Walmsley <pwalmsley@...dia.com>, Wei Ni <wni@...dia.com>,
Zhang Rui <rui.zhang@...el.com>, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 7/9] thermal: of: Add support for hardware-tracked trip
points
On Mon, Apr 18, 2016 at 11:35:59AM +0800, Caesar Wang wrote:
> From: Mikko Perttunen <mperttunen@...dia.com>
>
> This adds support for hardware-tracked trip points to the device tree
<cut>
> diff --git a/include/linux/thermal.h b/include/linux/thermal.h
> index 97b86c5..6ef932a 100644
> --- a/include/linux/thermal.h
> +++ b/include/linux/thermal.h
> @@ -335,12 +335,14 @@ struct thermal_genl_event {
> * @get_trend: a pointer to a function that reads the sensor temperature trend.
> * @set_emul_temp: a pointer to a function that sets sensor emulated
> * temperature.
> + * @set_trips: a pointer to a function that set low/high trip temperature.
> */
> struct thermal_zone_of_device_ops {
> int (*get_temp)(void *, int *);
> int (*get_trend)(void *, long *);
> int (*set_emul_temp)(void *, int);
> int (*set_trip_temp)(void *, int, int);
> + int (*set_trips)(void *, int, int);
This is unfortunately a diverges from API available on thermal core. Can
you please add first on thermal core then, use it in of thermal?
I don't want to have callbacks available only via of thermal. If we
allow it, OF thermal becomes a separate API.
> };
>
> /**
> --
> 1.9.1
>
Powered by blists - more mailing lists