diff options
author | Guenter Roeck <linux@roeck-us.net> | 2012-10-13 02:01:58 -0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-02-06 12:57:56 -0500 |
commit | 5372d2d71c46e5649e5d2edd4514adcd6fe7a085 (patch) | |
tree | a2317c0984ace02ba083f3386ce1ec7a3781b45a /include/linux/platform_data/max6697.h | |
parent | 412e29c135c11be6e2e4b22c0691e861b3d946c4 (diff) |
hwmon: Driver for Maxim MAX6697 and compatibles
Add support for MAX6581, MAX6602, MAX6622, MAX6636, MAX6689, MAX6693,
MAX6694, MAX6697, MAX6698, and MAX6699 temperature sensors
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'include/linux/platform_data/max6697.h')
-rw-r--r-- | include/linux/platform_data/max6697.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/linux/platform_data/max6697.h b/include/linux/platform_data/max6697.h new file mode 100644 index 000000000000..ed9d3b3daf02 --- /dev/null +++ b/include/linux/platform_data/max6697.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /* | ||
2 | * max6697.h | ||
3 | * Copyright (c) 2012 Guenter Roeck <linux@roeck-us.net> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | */ | ||
9 | |||
10 | #ifndef MAX6697_H | ||
11 | #define MAX6697_H | ||
12 | |||
13 | #include <linux/types.h> | ||
14 | |||
15 | /* | ||
16 | * For all bit masks: | ||
17 | * bit 0: local temperature | ||
18 | * bit 1..7: remote temperatures | ||
19 | */ | ||
20 | struct max6697_platform_data { | ||
21 | bool smbus_timeout_disable; /* set to disable SMBus timeouts */ | ||
22 | bool extended_range_enable; /* set to enable extended temp range */ | ||
23 | bool beta_compensation; /* set to enable beta compensation */ | ||
24 | u8 alert_mask; /* set bit to 1 to disable alert */ | ||
25 | u8 over_temperature_mask; /* set bit to 1 to disable */ | ||
26 | u8 resistance_cancellation; /* set bit to 0 to disable | ||
27 | * bit mask for MAX6581, | ||
28 | * boolean for other chips | ||
29 | */ | ||
30 | u8 ideality_mask; /* set bit to 0 to disable */ | ||
31 | u8 ideality_value; /* transistor ideality as per | ||
32 | * MAX6581 datasheet | ||
33 | */ | ||
34 | }; | ||
35 | |||
36 | #endif /* MAX6697_H */ | ||