History

thermal: Move trip point structure definition to private header

The struct thermal_trip is only used by the thermal internals, it is pointless to export the definition in the global header. Move the structure to the thermal_core.h internal header.

Daniel Lezcano committed 6 years ago

Commit 2e7700d1 parent 33a88af2 files · +13 −15Browse files

Unified · Split

2 files
  1. drivers/thermal/thermal_core.h +13 −0
  2. include/linux/thermal.h +0 −15
drivers/thermal/thermal_core.h+13−0
@@ -58,6 +58,19 @@ int power_actor_get_min_power(struct thermal_cooling_device *cdev, · 57 unmodified lines
58 struct thermal_zone_device *tz, u32 *min_power);58 struct thermal_zone_device *tz, u32 *min_power);
59int power_actor_set_power(struct thermal_cooling_device *cdev,59int power_actor_set_power(struct thermal_cooling_device *cdev,
60 struct thermal_instance *ti, u32 power);60 struct thermal_instance *ti, u32 power);
61/**
62 * struct thermal_trip - representation of a point in temperature domain
63 * @np: pointer to struct device_node that this trip point was created from
64 * @temperature: temperature value in miliCelsius
65 * @hysteresis: relative hysteresis in miliCelsius
66 * @type: trip point type
67 */
68struct thermal_trip {
69 struct device_node *np;
70 int temperature;
71 int hysteresis;
72 enum thermal_trip_type type;
73};
61 74
62/*75/*
63 * This structure is used to describe the behavior of76 * This structure is used to describe the behavior of
include/linux/thermal.h+0−15
@@ -332,21 +332,6 @@ struct thermal_zone_of_device_ops { · 331 unmodified lines
332 int (*set_trip_temp)(void *, int, int);332 int (*set_trip_temp)(void *, int, int);
333};333};
334 334
335/**
336 * struct thermal_trip - representation of a point in temperature domain
337 * @np: pointer to struct device_node that this trip point was created from
338 * @temperature: temperature value in miliCelsius
339 * @hysteresis: relative hysteresis in miliCelsius
340 * @type: trip point type
341 */
342
343struct thermal_trip {
344 struct device_node *np;
345 int temperature;
346 int hysteresis;
347 enum thermal_trip_type type;
348};
349
350/* Function declarations */335/* Function declarations */
351#ifdef CONFIG_THERMAL_OF336#ifdef CONFIG_THERMAL_OF
352int thermal_zone_of_get_sensor_id(struct device_node *tz_np,337int thermal_zone_of_get_sensor_id(struct device_node *tz_np,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t