On the Xserve G5 we find the LM75 instead of the DS1775. The core

functionality is the same, a difference is that the DS1775 has a better
precision than the LM75. But we do not use it in our setup. Make the
LM75 work the same as the DS1775.

Fix a typo in device_set_desc.

Tested by: Paul Mather <paul at gromit dlib vt edu>

Approved by:	nwhitehorn (mentor)
This commit is contained in:
Andreas Tobler 2010-12-10 20:27:50 +00:00
parent 61faa8d87d
commit 7cea3d952b

View File

@ -127,14 +127,15 @@ ds1775_probe(device_t dev)
return (ENXIO);
if (strcmp(name, "temp-monitor") != 0 ||
strcmp(compatible, "ds1775") != 0)
(strcmp(compatible, "ds1775") != 0 &&
strcmp(compatible, "lm75") != 0))
return (ENXIO);
sc = device_get_softc(dev);
sc->sc_dev = dev;
sc->sc_addr = iicbus_get_addr(dev);
device_set_desc(dev, "Temp-Monitor DS1755");
device_set_desc(dev, "Temp-Monitor DS1775");
return (0);
}