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.
Unified · Split
| @@ -58,6 +58,19 @@ int power_actor_get_min_power(struct thermal_cooling_device *cdev, · 57 unmodified lines | ||
| 58 | 58 | struct thermal_zone_device *tz, u32 *min_power); |
| 59 | 59 | int power_actor_set_power(struct thermal_cooling_device *cdev, |
| 60 | 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 | + */ | |
| 68 | +struct 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 | 76 | * This structure is used to describe the behavior of |
| @@ -332,21 +332,6 @@ struct thermal_zone_of_device_ops { · 331 unmodified lines | ||
| 332 | 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 | − | |
| 343 | −struct thermal_trip { | |
| 344 | − struct device_node *np; | |
| 345 | − int temperature; | |
| 346 | − int hysteresis; | |
| 347 | − enum thermal_trip_type type; | |
| 348 | −}; | |
| 349 | − | |
| 350 | 335 | /* Function declarations */ |
| 351 | 336 | #ifdef CONFIG_THERMAL_OF |
| 352 | 337 | int thermal_zone_of_get_sensor_id(struct device_node *tz_np, |