diff options
author | Jeffrey Gardner <je_fro@gentoo.org> | 2008-07-23 22:17:19 +0000 |
---|---|---|
committer | Jeffrey Gardner <je_fro@gentoo.org> | 2008-07-23 22:17:19 +0000 |
commit | 0710b655985c90add71ea5dfe617722feeeb99db (patch) | |
tree | 15cde918b99858f195c2c134479ebae7df39a445 /sys-kernel/mactel-linux-sources/files/2.6.26-mactel-patches-r159/applesmc-macbook-air.patch | |
parent | latest svn (diff) | |
download | je_fro-0710b655985c90add71ea5dfe617722feeeb99db.tar.gz je_fro-0710b655985c90add71ea5dfe617722feeeb99db.tar.bz2 je_fro-0710b655985c90add71ea5dfe617722feeeb99db.zip |
latest svn
svn path=/; revision=240
Diffstat (limited to 'sys-kernel/mactel-linux-sources/files/2.6.26-mactel-patches-r159/applesmc-macbook-air.patch')
-rw-r--r-- | sys-kernel/mactel-linux-sources/files/2.6.26-mactel-patches-r159/applesmc-macbook-air.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/sys-kernel/mactel-linux-sources/files/2.6.26-mactel-patches-r159/applesmc-macbook-air.patch b/sys-kernel/mactel-linux-sources/files/2.6.26-mactel-patches-r159/applesmc-macbook-air.patch new file mode 100644 index 0000000..8bb3897 --- /dev/null +++ b/sys-kernel/mactel-linux-sources/files/2.6.26-mactel-patches-r159/applesmc-macbook-air.patch @@ -0,0 +1,45 @@ +Add support for Apple Macbook Air. + +From: Henrik Rydberg <rydberg@euromail.se> + +This support is quite minimal at the moment, waiting for the author to see if we can add more devices. +Can we add accelerometer support or not? +--- + + drivers/hwmon/applesmc.c | 8 ++++++++ + 1 files changed, 8 insertions(+), 0 deletions(-) + + +diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c +index c6a1f49..939e5ea 100644 +--- a/drivers/hwmon/applesmc.c ++++ b/drivers/hwmon/applesmc.c +@@ -101,6 +101,8 @@ static const char* temperature_sensors_sets[][36] = { + /* Set 5: Macbook3 set */ + { "TB0T", "TC0D", "TC0P", "TM0P", "TN0P", "TTF0", "TW0P", "Th0H", + "Th0S", "Th1H", NULL }, ++/* Set 6: Macbook Air */ ++ { "TB0T", NULL }, + }; + + /* List of keys used to read/write fan speeds */ +@@ -1241,6 +1243,8 @@ static __initdata struct dmi_match_data applesmc_dmi_data[] = { + { .accelerometer = 0, .light = 0, .temperature_set = 4 }, + /* MacBook3: accelerometer and temperature set 5 */ + { .accelerometer = 1, .light = 0, .temperature_set = 5 }, ++/* MacBook Air: accelerometer, backlight and temperature set 6 */ ++ { .accelerometer = 1, .light = 1, .temperature_set = 6 }, + }; + + /* Note that DMI_MATCH(...,"MacBook") will match "MacBookPro1,1". +@@ -1258,6 +1262,10 @@ static __initdata struct dmi_system_id applesmc_whitelist[] = { + DMI_MATCH(DMI_BOARD_VENDOR,"Apple"), + DMI_MATCH(DMI_PRODUCT_NAME,"MacBook3") }, + (void*)&applesmc_dmi_data[5]}, ++ { applesmc_dmi_match, "Apple MacBook Air", { ++ DMI_MATCH(DMI_BOARD_VENDOR,"Apple"), ++ DMI_MATCH(DMI_PRODUCT_NAME,"MacBookAir") }, ++ (void*)&applesmc_dmi_data[6]}, + { applesmc_dmi_match, "Apple MacBook", { + DMI_MATCH(DMI_BOARD_VENDOR,"Apple"), + DMI_MATCH(DMI_PRODUCT_NAME,"MacBook") }, |