Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63443
b: refs/heads/master
c: 1bed24b
h: refs/heads/master
i:
  63441: d65172c
  63439: 89ab509
v: v3
  • Loading branch information
Martin Szulecki authored and Mark M. Hoffman committed Jul 31, 2007
1 parent 3dec601 commit 8a06128
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 794f5434942614e5e8f70b9d65b9275e11ad1510
refs/heads/master: 1bed24b9785f7f5255c120f194e98343b998f6ce
14 changes: 9 additions & 5 deletions trunk/drivers/hwmon/applesmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,15 @@

/*
* Temperature sensors keys (sp78 - 2 bytes).
* First set for Macbook(Pro), second for Macmini.
*/
static const char* temperature_sensors_sets[][13] = {
/* Set 0: Macbook Pro */
{ "TA0P", "TB0T", "TC0D", "TC0P", "TG0H", "TG0P", "TG0T", "Th0H",
"Th1H", "Tm0P", "Ts0P", "Ts1P", NULL },
/* Set 1: Macbook set */
{ "TB0T", "TC0D", "TC0P", "TM0P", "TN0P", "TN1P", "Th0H", "Th0S",
"Th1H", "Ts0P", NULL },
/* Set 2: Macmini set */
{ "TC0D", "TC0P", NULL }
};

Expand Down Expand Up @@ -1150,10 +1154,10 @@ static void applesmc_release_accelerometer(void)
static __initdata struct dmi_match_data applesmc_dmi_data[] = {
/* MacBook Pro: accelerometer, backlight and temperature set 0 */
{ .accelerometer = 1, .light = 1, .temperature_set = 0 },
/* MacBook: accelerometer and temperature set 0 */
{ .accelerometer = 1, .light = 0, .temperature_set = 0 },
/* MacBook: temperature set 1 */
{ .accelerometer = 0, .light = 0, .temperature_set = 1 }
/* MacBook: accelerometer and temperature set 1 */
{ .accelerometer = 1, .light = 0, .temperature_set = 1 },
/* MacMini: temperature set 2 */
{ .accelerometer = 0, .light = 0, .temperature_set = 2 },
};

/* Note that DMI_MATCH(...,"MacBook") will match "MacBookPro1,1".
Expand Down

0 comments on commit 8a06128

Please sign in to comment.