Revision: 48 http://svn.sourceforge.net/mactel-linux/?rev=48&view=rev Author: nboichat Date: 2006-10-13 22:24:47 -0700 (Fri, 13 Oct 2006)
Log Message: ----------- Remove old keyboard backlight interface. 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-10-13 20:59:14 UTC (rev 47) +++ trunk/kernel/mactel-patches-2.6.18/applesmc.patch 2006-10-14 05:24:47 UTC (rev 48) @@ -1,6 +1,6 @@ -diff -pruN linux/drivers/hwmon.vanilla/Kconfig linux/drivers/hwmon/Kconfig ---- linux/drivers/hwmon.vanilla/Kconfig 2006-08-30 21:46:09.000000000 +0800 -+++ linux/drivers/hwmon/Kconfig 2006-09-01 12:14:58.000000000 +0800 +diff -pruN linux-2.6.18/drivers/hwmon.vanilla/Kconfig linux-2.6.18/drivers/hwmon/Kconfig +--- linux-2.6.18/drivers/hwmon.vanilla/Kconfig 2006-10-14 13:07:48.000000000 +0800 ++++ linux-2.6.18/drivers/hwmon/Kconfig 2006-10-14 13:08:22.000000000 +0800 @@ -507,6 +507,26 @@ config SENSORS_HDAPS Say Y here if you have an applicable laptop and want to experience the awesome power of hdaps. @@ -28,9 +28,9 @@ config HWMON_DEBUG_CHIP bool "Hardware Monitoring Chip debugging messages" depends on HWMON -diff -pruN linux/drivers/hwmon.vanilla/Makefile linux/drivers/hwmon/Makefile ---- linux/drivers/hwmon.vanilla/Makefile 2006-08-30 21:46:09.000000000 +0800 -+++ linux/drivers/hwmon/Makefile 2006-09-01 12:14:58.000000000 +0800 +diff -pruN linux-2.6.18/drivers/hwmon.vanilla/Makefile linux-2.6.18/drivers/hwmon/Makefile +--- linux-2.6.18/drivers/hwmon.vanilla/Makefile 2006-10-14 13:07:48.000000000 +0800 ++++ linux-2.6.18/drivers/hwmon/Makefile 2006-10-14 13:08:22.000000000 +0800 @@ -18,6 +18,7 @@ obj-$(CONFIG_SENSORS_ADM1025) += adm1025 obj-$(CONFIG_SENSORS_ADM1026) += adm1026.o obj-$(CONFIG_SENSORS_ADM1031) += adm1031.o @@ -39,10 +39,10 @@ obj-$(CONFIG_SENSORS_ATXP1) += atxp1.o obj-$(CONFIG_SENSORS_DS1621) += ds1621.o obj-$(CONFIG_SENSORS_F71805F) += f71805f.o -diff -pruN linux/drivers/hwmon.vanilla/applesmc.c linux/drivers/hwmon/applesmc.c ---- linux/drivers/hwmon.vanilla/applesmc.c 1970-01-01 07:30:00.000000000 +0730 -+++ linux/drivers/hwmon/applesmc.c 2006-09-01 12:31:24.000000000 +0800 -@@ -0,0 +1,600 @@ +diff -pruN linux-2.6.18/drivers/hwmon.vanilla/applesmc.c linux-2.6.18/drivers/hwmon/applesmc.c +--- linux-2.6.18/drivers/hwmon.vanilla/applesmc.c 1970-01-01 07:30:00.000000000 +0730 ++++ linux-2.6.18/drivers/hwmon/applesmc.c 2006-10-14 13:09:10.000000000 +0800 +@@ -0,0 +1,575 @@ +/* + * drivers/hwmon/applesmc.c - driver for Apple's SMC (various sensors) + * @@ -404,29 +404,6 @@ + return sprintf(buf, "(%d,%d)\n", left, right); +} + -+static ssize_t applesmc_keyboard_backlight_store(struct device *dev, -+ struct device_attribute *attr, -+ const char *buf, size_t count) -+{ -+ int ret; -+ u8 buffer[2]; -+ long val = simple_strtol(buf, NULL, 10); -+ -+ if (val < 0 || val > 255) -+ return EINVAL; -+ -+ down(&applesmc_sem); -+ buffer[0] = val; -+ buffer[1] = 0x00; -+ ret = applesmc_write_key(BACKLIGHT_KEY, buffer, 2); -+ up(&applesmc_sem); -+ -+ if (ret) -+ return ret; -+ -+ return count; -+} -+ +static ssize_t applesmc_calibrate_show(struct device *dev, + struct device_attribute *attr, char *buf) +{ @@ -464,13 +441,11 @@ + +static DEVICE_ATTR(position, 0444, applesmc_position_show, NULL); +static DEVICE_ATTR(light, 0444, applesmc_light_show, NULL); -+static DEVICE_ATTR(keyboard_backlight, 0220, NULL, applesmc_keyboard_backlight_store); +static DEVICE_ATTR(calibrate, 0644, applesmc_calibrate_show,applesmc_calibrate_store); + +static struct attribute *applesmc_light_attributes[] = { + &dev_attr_position.attr, + &dev_attr_light.attr, -+ &dev_attr_keyboard_backlight.attr, + &dev_attr_calibrate.attr, + NULL, +}; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Mactel-linux-devel mailing list Mactel-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mactel-linux-devel