aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2017-05-21 22:34:42 +0200
committerGuenter Roeck <linux@roeck-us.net>2017-06-11 17:08:19 -0700
commit0c9fe1614126171c70e0dc0b0635d45a327ac82a (patch)
treed4769a7417d478ff753bc2e49f906ac05cc81398 /include/linux/platform_data
parenthwmon: (ltc4245) move header file out of I2C realm (diff)
downloadwireguard-linux-0c9fe1614126171c70e0dc0b0635d45a327ac82a.tar.xz
wireguard-linux-0c9fe1614126171c70e0dc0b0635d45a327ac82a.zip
hwmon: (max6639) move header file out of I2C realm
include/linux/i2c is not for client devices. Move the header file to a more appropriate location. Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/max6639.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/platform_data/max6639.h b/include/linux/platform_data/max6639.h
new file mode 100644
index 000000000000..6011c42034da
--- /dev/null
+++ b/include/linux/platform_data/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 */