Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/i2c Explicitly inform envsys that the driver is capa...



details:   https://anonhg.NetBSD.org/src/rev/702b02bbc627
branches:  trunk
changeset: 750461:702b02bbc627
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Fri Jan 01 15:43:49 2010 +0000

description:
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.

diffstat:

 sys/dev/i2c/sdtemp.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 4328acd096d9 -r 702b02bbc627 sys/dev/i2c/sdtemp.c
--- a/sys/dev/i2c/sdtemp.c      Fri Jan 01 15:41:25 2010 +0000
+++ b/sys/dev/i2c/sdtemp.c      Fri Jan 01 15:43:49 2010 +0000
@@ -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 */



Home | Main Index | Thread Index | Old Index