Module Name:    src
Committed By:   pgoyette
Date:           Fri Jan  1 15:43:50 UTC 2010

Modified Files:
        src/sys/dev/i2c: sdtemp.c

Log Message:
Explicitly inform envsys that the driver is capable of doing its own
limit checking at initialization time.  Later on, if user specifics any
unsupported limits, the driver will relinquish this task.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/i2c/sdtemp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/i2c/sdtemp.c
diff -u src/sys/dev/i2c/sdtemp.c:1.7 src/sys/dev/i2c/sdtemp.c:1.8
--- src/sys/dev/i2c/sdtemp.c:1.7	Fri Jul 10 15:30:45 2009
+++ src/sys/dev/i2c/sdtemp.c	Fri Jan  1 15:43:49 2010
@@ -1,4 +1,4 @@
-/*      $NetBSD: sdtemp.c,v 1.7 2009/07/10 15:30:45 pgoyette Exp $        */
+/*      $NetBSD: sdtemp.c,v 1.8 2010/01/01 15:43:49 pgoyette Exp $        */
 
 /*
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.7 2009/07/10 15:30:45 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.8 2010/01/01 15:43:49 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -325,6 +325,8 @@
 		limits->sel_flags |= PROP_CRITMAX;
 	}
 	iic_release_bus(sc->sc_tag, 0);
+	if (limits->sel_flags != 0)
+		limits->sel_flags |= PROP_DRIVER_LIMITS;
 }
 
 /* Send current limit values to the device */

Reply via email to