diff options
author | Étienne Bersac <bersace@gmail.com> | 2008-04-29 01:39:55 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-04-29 01:57:35 -0400 |
commit | 80ff974dba8cc432ab81676fc09d3c357cb11276 (patch) | |
tree | b775a81b3ceca1a6df40fec751293d0398c7c36f /drivers/macintosh/windfarm_lm75_sensor.c | |
parent | 21e38dfee53a2159d14a24a3d2277ae757599efa (diff) |
[POWERPC] windfarm: Add PowerMac 12,1 support
This implements a new driver named windfarm_pm121, which drives the
fans on PowerMac 12,1 machines : iMac G5 iSight (rev C) 17" and
20". It's based on the windfarm_pm81 driver from Benjamin
Herrenschmidt.
This includes fixes from David Woodhouse correcting the names of some
of the sensors.
Signed-off-by: Étienne Bersac <bersace@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/macintosh/windfarm_lm75_sensor.c')
-rw-r--r-- | drivers/macintosh/windfarm_lm75_sensor.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/macintosh/windfarm_lm75_sensor.c b/drivers/macintosh/windfarm_lm75_sensor.c index 7e10c3ab4d50..b92b959fe16e 100644 --- a/drivers/macintosh/windfarm_lm75_sensor.c +++ b/drivers/macintosh/windfarm_lm75_sensor.c | |||
@@ -127,6 +127,12 @@ static struct wf_lm75_sensor *wf_lm75_create(struct i2c_adapter *adapter, | |||
127 | */ | 127 | */ |
128 | if (!strcmp(loc, "Hard drive") || !strcmp(loc, "DRIVE BAY")) | 128 | if (!strcmp(loc, "Hard drive") || !strcmp(loc, "DRIVE BAY")) |
129 | lm->sens.name = "hd-temp"; | 129 | lm->sens.name = "hd-temp"; |
130 | else if (!strcmp(loc, "Incoming Air Temp")) | ||
131 | lm->sens.name = "incoming-air-temp"; | ||
132 | else if (!strcmp(loc, "ODD Temp")) | ||
133 | lm->sens.name = "optical-drive-temp"; | ||
134 | else if (!strcmp(loc, "HD Temp")) | ||
135 | lm->sens.name = "hard-drive-temp"; | ||
130 | else | 136 | else |
131 | goto fail; | 137 | goto fail; |
132 | 138 | ||