thermal_hwmon.c (de6b0c1acc1411a67fb89f60ee7b526066da7bfb) thermal_hwmon.c (f37fabb8643eaf8e3b613333a72f683770c85eca)
1/*
2 * thermal_hwmon.c - Generic Thermal Management hwmon support.
3 *
4 * Code based on Intel thermal_core.c. Copyrights of the original code:
5 * Copyright (C) 2008 Intel Corp
6 * Copyright (C) 2008 Zhang Rui <rui.zhang@intel.com>
7 * Copyright (C) 2008 Sujith Thomas <sujith.thomas@intel.com>
8 *

--- 84 unchanged lines hidden (view full) ---

93 = container_of(attr, struct thermal_hwmon_attr, attr);
94 struct thermal_hwmon_temp *temp
95 = container_of(hwmon_attr, struct thermal_hwmon_temp,
96 temp_crit);
97 struct thermal_zone_device *tz = temp->tz;
98 int temperature;
99 int ret;
100
1/*
2 * thermal_hwmon.c - Generic Thermal Management hwmon support.
3 *
4 * Code based on Intel thermal_core.c. Copyrights of the original code:
5 * Copyright (C) 2008 Intel Corp
6 * Copyright (C) 2008 Zhang Rui <rui.zhang@intel.com>
7 * Copyright (C) 2008 Sujith Thomas <sujith.thomas@intel.com>
8 *

--- 84 unchanged lines hidden (view full) ---

93 = container_of(attr, struct thermal_hwmon_attr, attr);
94 struct thermal_hwmon_temp *temp
95 = container_of(hwmon_attr, struct thermal_hwmon_temp,
96 temp_crit);
97 struct thermal_zone_device *tz = temp->tz;
98 int temperature;
99 int ret;
100
101 ret = tz->ops->get_trip_temp(tz, 0, &temperature);
101 ret = tz->ops->get_crit_temp(tz, &temperature);
102 if (ret)
103 return ret;
104
105 return sprintf(buf, "%d\n", temperature);
106}
107
108
109static struct thermal_hwmon_device *

--- 165 unchanged lines hidden ---
102 if (ret)
103 return ret;
104
105 return sprintf(buf, "%d\n", temperature);
106}
107
108
109static struct thermal_hwmon_device *

--- 165 unchanged lines hidden ---