Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c Use lmtemp(4) as entropy source.
details: https://anonhg.NetBSD.org/src/rev/101c888b9c5c
branches: trunk
changeset: 959924:101c888b9c5c
user: rin <rin%NetBSD.org@localhost>
date: Mon Mar 01 04:40:39 2021 +0000
description:
Use lmtemp(4) as entropy source.
diffstat:
sys/dev/i2c/lm75.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0be9356c8104 -r 101c888b9c5c sys/dev/i2c/lm75.c
--- a/sys/dev/i2c/lm75.c Mon Mar 01 04:39:45 2021 +0000
+++ b/sys/dev/i2c/lm75.c Mon Mar 01 04:40:39 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lm75.c,v 1.41 2021/02/06 05:21:47 thorpej Exp $ */
+/* $NetBSD: lm75.c,v 1.42 2021/03/01 04:40:39 rin Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lm75.c,v 1.41 2021/02/06 05:21:47 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lm75.c,v 1.42 2021/03/01 04:40:39 rin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -279,7 +279,7 @@
/* Initialize sensor data. */
sc->sc_sensor.units = ENVSYS_STEMP;
sc->sc_sensor.state = ENVSYS_SINVALID;
- sc->sc_sensor.flags = ENVSYS_FMONLIMITS;
+ sc->sc_sensor.flags = ENVSYS_FMONLIMITS | ENVSYS_FHAS_ENTROPY;
(void)strlcpy(name,
ia->ia_name? ia->ia_name : device_xname(self),
Home |
Main Index |
Thread Index |
Old Index