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 dstemp(4) as entropy source.
details: https://anonhg.NetBSD.org/src/rev/150edc73b82d
branches: trunk
changeset: 953208:150edc73b82d
user: rin <rin%NetBSD.org@localhost>
date: Mon Mar 01 04:39:45 2021 +0000
description:
Use dstemp(4) as entropy source.
diffstat:
sys/dev/i2c/dstemp.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 4d3d984dd8ab -r 150edc73b82d sys/dev/i2c/dstemp.c
--- a/sys/dev/i2c/dstemp.c Mon Mar 01 03:42:57 2021 +0000
+++ b/sys/dev/i2c/dstemp.c Mon Mar 01 04:39:45 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dstemp.c,v 1.11 2021/01/30 17:37:25 thorpej Exp $ */
+/* $NetBSD: dstemp.c,v 1.12 2021/03/01 04:39:45 rin Exp $ */
/*-
* Copyright (c) 2018 Michael Lorenz
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dstemp.c,v 1.11 2021/01/30 17:37:25 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dstemp.c,v 1.12 2021/03/01 04:39:45 rin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -124,6 +124,7 @@
sc->sc_sensor_temp.units = ENVSYS_STEMP;
sc->sc_sensor_temp.state = ENVSYS_SINVALID;
+ sc->sc_sensor_temp.flags = ENVSYS_FHAS_ENTROPY;
if (prop_dictionary_get_cstring_nocopy(sc->sc_prop, "s00", &desc)) {
strncpy(name, desc, 64);
Home |
Main Index |
Thread Index |
Old Index