mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
hwmon: applesmc: add support for Macbook 4
This patch adds accelerometer and temperature sensor support for Macbook 4. Signed-off-by: Henrik Rydberg <rydberg@euromail.se> Cc: Nicolas Boichat <nicolas@boichat.ch Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
7526674de0
commit
468cc0320e
1 changed files with 5 additions and 1 deletions
|
@ -1280,7 +1280,7 @@ static __initdata struct dmi_match_data applesmc_dmi_data[] = {
|
|||
{ .accelerometer = 0, .light = 0, .temperature_set = 4 },
|
||||
/* iMac: temperature set 5 */
|
||||
{ .accelerometer = 0, .light = 0, .temperature_set = 5 },
|
||||
/* MacBook3: accelerometer and temperature set 6 */
|
||||
/* MacBook3, MacBook4: accelerometer and temperature set 6 */
|
||||
{ .accelerometer = 1, .light = 0, .temperature_set = 6 },
|
||||
/* MacBook Air: accelerometer, backlight and temperature set 7 */
|
||||
{ .accelerometer = 1, .light = 1, .temperature_set = 7 },
|
||||
|
@ -1329,6 +1329,10 @@ static __initdata struct dmi_system_id applesmc_whitelist[] = {
|
|||
DMI_MATCH(DMI_BOARD_VENDOR,"Apple"),
|
||||
DMI_MATCH(DMI_PRODUCT_NAME,"MacBook3") },
|
||||
&applesmc_dmi_data[6]},
|
||||
{ applesmc_dmi_match, "Apple MacBook 4", {
|
||||
DMI_MATCH(DMI_BOARD_VENDOR, "Apple"),
|
||||
DMI_MATCH(DMI_PRODUCT_NAME, "MacBook4") },
|
||||
&applesmc_dmi_data[6]},
|
||||
{ applesmc_dmi_match, "Apple MacBook 5", {
|
||||
DMI_MATCH(DMI_BOARD_VENDOR, "Apple"),
|
||||
DMI_MATCH(DMI_PRODUCT_NAME, "MacBook5") },
|
||||
|
|
Loading…
Reference in a new issue