Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Dec 2010 20:27:50 +0000 (UTC)
From:      Andreas Tobler <andreast@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216360 - head/sys/dev/iicbus
Message-ID:  <201012102027.oBAKRodg084681@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012102027.oBAKRodg084681>