summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorstigge@antcom.de <stigge@antcom.de>2011-01-20 18:42:55 +0100
committerGuenter Roeck <guenter.roeck@ericsson.com>2011-02-26 08:59:44 -0800
commitcc43133b79c83848cb241bc38148d9cbbac6f761 (patch)
tree0b11d331285c90fc062c3966694a1c69ec51fd14 /include
parenta7254d68b61c7873ce20591f0c56bf0245b72a76 (diff)
hwmon: Driver for Maxim MAX6639
2-Channel Temperature Monitor with Dual PWM Fan-Speed Controller Signed-off-by: Roland Stigge <stigge@antcom.de> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/i2c/max6639.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/i2c/max6639.h b/include/linux/i2c/max6639.h
new file mode 100644
index 000000000000..6011c42034da
--- /dev/null
+++ b/include/linux/i2c/max6639.h
@@ -0,0 +1,14 @@
+#ifndef _LINUX_MAX6639_H
+#define _LINUX_MAX6639_H
+
+#include <linux/types.h>
+
+/* platform data for the MAX6639 temperature sensor and fan control */
+
+struct max6639_platform_data {
+ bool pwm_polarity; /* Polarity low (0) or high (1, default) */
+ int ppr; /* Pulses per rotation 1..4 (default == 2) */
+ int rpm_range; /* 2000, 4000 (default), 8000 or 16000 */
+};
+
+#endif /* _LINUX_MAX6639_H */