[lkml]   [2019]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH RFC 1/2] thermal/drivers/of: Add a get_temp_id callback function
On Thu, Apr 4, 2019 at 1:07 AM Daniel Lezcano <> wrote:
> Currently when we register a sensor, we specify the sensor id and a data
> pointer to be passed when the get_temp function is called. However the
> sensor_id is not passed to the get_temp callback forcing the driver to
> do extra allocation and adding back pointer to find out from the sensor
> information the driver data and then back to the sensor id.
> Add a new callback get_temp_id() which will be called if set. It will
> call the get_temp_id() with the sensor id.
> That will be more consistent with the registering function.

Tested both patches on i.MX8MQ, seem to work as expected.

Tested-by: Andrey Smirnov <>

Andrey Smirnov

 \ /
  Last update: 2019-04-13 10:19    [W:0.155 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site