Revision: 59
          http://svn.sourceforge.net/mactel-linux/?rev=59&view=rev
Author:   ludov
Date:     2006-11-17 05:40:11 -0800 (Fri, 17 Nov 2006)

Log Message:
-----------
allow changing the minimum fan speed (add writable support to
/sys/devices/platform/applesmc/fan?_minimum_speed).

patch from Jason Parekh

Modified Paths:
--------------
    trunk/kernel/mactel-patches-2.6.18/applesmc.patch

Modified: trunk/kernel/mactel-patches-2.6.18/applesmc.patch
===================================================================
--- trunk/kernel/mactel-patches-2.6.18/applesmc.patch   2006-11-14 22:33:50 UTC 
(rev 58)
+++ trunk/kernel/mactel-patches-2.6.18/applesmc.patch   2006-11-17 13:40:11 UTC 
(rev 59)
@@ -641,8 +641,13 @@
 +{ \
 +      return applesmc_show_fan_speed(dev, buf, FAN_MIN_SPEED, offset); \
 +} \
-+static DEVICE_ATTR(fan##offset##_minimum_speed, S_IRUGO, \
-+                              show_fan_minimum_speed_##offset, NULL); \
++static ssize_t store_fan_minimum_speed_##offset (struct device *dev, \
++               struct device_attribute *attr, const char *buf, size_t count) \
++{ \
++    return applesmc_store_fan_speed(dev, buf, count, FAN_MIN_SPEED, offset); \
++} \
++static DEVICE_ATTR(fan##offset##_minimum_speed, S_IRUGO | S_IWUSR, \
++              show_fan_minimum_speed_##offset, 
store_fan_minimum_speed_##offset); \
 +\
 +static ssize_t show_fan_maximum_speed_##offset (struct device *dev, \
 +                              struct device_attribute *attr, char *buf) \


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mactel-linux-devel mailing list
Mactel-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mactel-linux-devel

Reply via email to