thermal: streamline get_trend callbacks
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 22 Jun 2016 08:42:03 +0000 (16:42 +0800)
committerZhang Rui <rui.zhang@intel.com>
Fri, 19 Aug 2016 06:46:26 +0000 (14:46 +0800)
commit94f94ab785e20205a3d172640100ce1da295ff0e
treed9a4d7eb24c8c2b113dccebe2f3d1c84586f3195
parent252b787977f3f48fe4d63463c227726dd24aeb35
thermal: streamline get_trend callbacks

The .get_trend callback in struct thermal_zone_device_ops has
the prototype:
        int (*get_trend) (struct thermal_zone_device *, int,
                          enum thermal_trend *);
whereas the .get_trend callback in struct thermal_zone_of_device_ops
has:
        int (*get_trend)(void *, long *);

Streamline both prototypes and add the trip argument to the OF callback
aswell and use enum thermal_trend * instead of an integer pointer.

While the OF prototype may be the better one, this should be decided at
framework level and not on OF level.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Cc: linux-pm@vger.kernel.org
Reviewed-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/of-thermal.c
drivers/thermal/qcom/tsens.c
drivers/thermal/qcom/tsens.h
drivers/thermal/ti-soc-thermal/ti-thermal-common.c
include/linux/thermal.h
This page took 0.028855 seconds and 5 git commands to generate.