]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - include/linux/thermal.h
Thermal: Ignore invalid trip points
[mirror_ubuntu-artful-kernel.git] / include / linux / thermal.h
index 9c481991fdc7ea602bce3ccdb5b5d99d9bb2a781..a55d0523f75d63bfbe43355a56dd0f08e835cdc9 100644 (file)
@@ -156,6 +156,7 @@ struct thermal_attr {
  * @trip_hyst_attrs:   attributes for trip points for sysfs: trip hysteresis
  * @devdata:   private pointer for device private data
  * @trips:     number of trip points the thermal zone supports
+ * @trips_disabled;    bitmap for disabled trips
  * @passive_delay:     number of milliseconds to wait between polls when
  *                     performing passive cooling.
  * @polling_delay:     number of milliseconds to wait between polls when
@@ -191,6 +192,7 @@ struct thermal_zone_device {
        struct thermal_attr *trip_hyst_attrs;
        void *devdata;
        int trips;
+       unsigned long trips_disabled;   /* bitmap for disabled trips */
        int passive_delay;
        int polling_delay;
        int temperature;