diff options
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, 0 insertions, 45 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 deleted file mode 100644 index 8bb3897..0000000 --- a/sys-kernel/mactel-linux-sources/files/2.6.26-mactel-patches-r159/applesmc-macbook-air.patch +++ /dev/null @@ -1,45 +0,0 @@ -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") }, |