summaryrefslogtreecommitdiff
path: root/include/linux/f75375s.h
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@iki.fi>2007-09-26 14:14:40 +0400
committerMark M. Hoffman <mhoffman@lightlink.com>2007-11-08 16:42:46 +0300
commitff312d07c2e1b1482fcc139b8af67ca39e9e98f0 (patch)
tree21297694fea8776dd7713b2ea7b0cc9985ac40f4 /include/linux/f75375s.h
parent620c142db20477149bf04c7e8e8fde70d608e8c7 (diff)
downloadlinux-ff312d07c2e1b1482fcc139b8af67ca39e9e98f0.tar.xz
hwmon: (f75375s) Allow setting up fans with platform_data
Allow initializing fans on systems where BIOS does not do that by default. - define f75375s_platform_data in new file f75375s.h - if platform_data was provided, set fans accordingly in f75375_init() - split set_pwm_enable() to a sysfs callback and directly usable set_pwm_enable_direct() Signed-off-by: Riku Voipio <riku.voipio@movial.fi> Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Diffstat (limited to 'include/linux/f75375s.h')
-rw-r--r--include/linux/f75375s.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/f75375s.h b/include/linux/f75375s.h
new file mode 100644
index 000000000000..e99e22500668
--- /dev/null
+++ b/include/linux/f75375s.h
@@ -0,0 +1,21 @@
+/*
+ * f75375s.h - platform data structure for f75375s sensor
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 2007, Riku Voipio <riku.voipio@iki.fi>
+ */
+
+#ifndef __LINUX_F75375S_H
+#define __LINUX_F75375S_H
+
+/* We want to set fans spinning on systems where there is no
+ * BIOS to do that for us */
+struct f75375s_platform_data {
+ u8 pwm[2];
+ u8 pwm_enable[2];
+};
+
+#endif /* __LINUX_F75375S_H */