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.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -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, |