aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lm85.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/lm85.c')
-rw-r--r--drivers/hwmon/lm85.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/hwmon/lm85.c b/drivers/hwmon/lm85.c
index 2c3293cf69d1..20a8c648280d 100644
--- a/drivers/hwmon/lm85.c
+++ b/drivers/hwmon/lm85.c
@@ -298,11 +298,6 @@ static int ZONE_TO_REG( int zone )
298#define LM85_DATA_INTERVAL (HZ + HZ / 2) 298#define LM85_DATA_INTERVAL (HZ + HZ / 2)
299#define LM85_CONFIG_INTERVAL (1 * 60 * HZ) 299#define LM85_CONFIG_INTERVAL (1 * 60 * HZ)
300 300
301/* For each registered LM85, we need to keep some data in memory. That
302 data is pointed to by lm85_list[NR]->data. The structure itself is
303 dynamically allocated, at the same time when a new lm85 client is
304 allocated. */
305
306/* LM85 can automatically adjust fan speeds based on temperature 301/* LM85 can automatically adjust fan speeds based on temperature
307 * This structure encapsulates an entire Zone config. There are 302 * This structure encapsulates an entire Zone config. There are
308 * three zones (one for each temperature input) on the lm85 303 * three zones (one for each temperature input) on the lm85
@@ -329,10 +324,11 @@ struct lm85_autofan {
329 u8 min_off; /* Min PWM or OFF below "limit", flag */ 324 u8 min_off; /* Min PWM or OFF below "limit", flag */
330}; 325};
331 326
327/* For each registered chip, we need to keep some data in memory.
328 The structure is dynamically allocated. */
332struct lm85_data { 329struct lm85_data {
333 struct i2c_client client; 330 struct i2c_client client;
334 struct class_device *class_dev; 331 struct class_device *class_dev;
335 struct mutex lock;
336 enum chips type; 332 enum chips type;
337 333
338 struct mutex update_lock; 334 struct mutex update_lock;