~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise-security

« back to all changes in this revision

Viewing changes to include/linux/thermal.h

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2011-12-06 15:56:07 UTC
  • Revision ID: package-import@ubuntu.com-20111206155607-pcf44kv5fmhk564f
Tags: 3.2.0-1401.1
[ Paolo Pisati ]

* Rebased on top of Ubuntu-3.2.0-3.8
* Tilt-tracking @ ef2487af4bb15bdd0689631774b5a5e3a59f74e2
* Delete debian.ti-omap4/control, it shoudln't be tracked
* Fix architecture spelling (s/armel/armhf/)
* [Config] Update configs following 3.2 import
* [Config] Fix compilation: disable CODA and ARCH_OMAP3
* [Config] Fix compilation: disable Ethernet Faraday
* Update series to precise

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
                                ((long)t-2732+5)/10 : ((long)t-2732-5)/10)
86
86
#define CELSIUS_TO_KELVIN(t)    ((t)*10+2732)
87
87
 
88
 
#if defined(CONFIG_THERMAL_HWMON)
89
 
/* thermal zone devices with the same type share one hwmon device */
90
 
struct thermal_hwmon_device {
91
 
        char type[THERMAL_NAME_LENGTH];
92
 
        struct device *device;
93
 
        int count;
94
 
        struct list_head tz_list;
95
 
        struct list_head node;
96
 
};
97
 
 
98
 
struct thermal_hwmon_attr {
99
 
        struct device_attribute attr;
100
 
        char name[16];
101
 
};
102
 
#endif
103
 
 
104
88
struct thermal_zone_device {
105
89
        int id;
106
90
        char type[THERMAL_NAME_LENGTH];
120
104
        struct mutex lock;      /* protect cooling devices list */
121
105
        struct list_head node;
122
106
        struct delayed_work poll_queue;
123
 
#if defined(CONFIG_THERMAL_HWMON)
124
 
        struct list_head hwmon_node;
125
 
        struct thermal_hwmon_device *hwmon;
126
 
        struct thermal_hwmon_attr temp_input;   /* hwmon sys attr */
127
 
        struct thermal_hwmon_attr temp_crit;    /* hwmon sys attr */
128
 
#endif
129
107
};
130
108
/* Adding event notification support elements */
131
109
#define THERMAL_GENL_FAMILY_NAME                "thermal_event"