Skip to content

Commit

Permalink
thermal: of: Rename struct __thermal_trip to struct thermal_trip
Browse files Browse the repository at this point in the history
This patch changes name of struct __thermal_trip to thermal_trip and moves
declaration of the latter to ./include/linux/thermal.h for better visibility.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
  • Loading branch information
Lukasz Majewski authored and Eduardo Valentin committed Dec 8, 2014
1 parent a9bf2cc commit ad9914a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
21 changes: 3 additions & 18 deletions drivers/thermal/of-thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,6 @@

/*** Private data structures to represent thermal device tree data ***/

/**
* struct __thermal_trip - representation of a point in temperature domain
* @np: pointer to struct device_node that this trip point was created from
* @temperature: temperature value in miliCelsius
* @hysteresis: relative hysteresis in miliCelsius
* @type: trip point type
*/

struct __thermal_trip {
struct device_node *np;
unsigned long int temperature;
unsigned long int hysteresis;
enum thermal_trip_type type;
};

/**
* struct __thermal_bind_param - a match between trip and cooling device
* @cooling_device: a pointer to identify the referred cooling device
Expand Down Expand Up @@ -88,7 +73,7 @@ struct __thermal_zone {

/* trip data */
int ntrips;
struct __thermal_trip *trips;
struct thermal_trip *trips;

/* cooling binding data */
int num_tbps;
Expand Down Expand Up @@ -538,7 +523,7 @@ EXPORT_SYMBOL_GPL(thermal_zone_of_sensor_unregister);
*/
static int thermal_of_populate_bind_params(struct device_node *np,
struct __thermal_bind_params *__tbp,
struct __thermal_trip *trips,
struct thermal_trip *trips,
int ntrips)
{
struct of_phandle_args cooling_spec;
Expand Down Expand Up @@ -641,7 +626,7 @@ static int thermal_of_get_trip_type(struct device_node *np,
* Return: 0 on success, proper error code otherwise
*/
static int thermal_of_populate_trip(struct device_node *np,
struct __thermal_trip *trip)
struct thermal_trip *trip)
{
int prop;
int ret;
Expand Down
15 changes: 15 additions & 0 deletions include/linux/thermal.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,21 @@ struct thermal_zone_of_device_ops {
int (*get_trend)(void *, long *);
};

/**
* struct thermal_trip - representation of a point in temperature domain
* @np: pointer to struct device_node that this trip point was created from
* @temperature: temperature value in miliCelsius
* @hysteresis: relative hysteresis in miliCelsius
* @type: trip point type
*/

struct thermal_trip {
struct device_node *np;
unsigned long int temperature;
unsigned long int hysteresis;
enum thermal_trip_type type;
};

/* Function declarations */
#ifdef CONFIG_THERMAL_OF
struct thermal_zone_device *
Expand Down

0 comments on commit ad9914a

Please sign in to comment.