Author: andreast
Date: Fri Dec 10 20:27:50 2010
New Revision: 216360
URL: http://svn.freebsd.org/changeset/base/216360

Log:
  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)

Modified:
  head/sys/dev/iicbus/ds1775.c

Modified: head/sys/dev/iicbus/ds1775.c
==============================================================================
--- head/sys/dev/iicbus/ds1775.c        Fri Dec 10 15:37:54 2010        
(r216359)
+++ head/sys/dev/iicbus/ds1775.c        Fri Dec 10 20:27:50 2010        
(r216360)
@@ -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);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to