Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/dev adjust comments, break a long line
details: https://anonhg.NetBSD.org/src/rev/05f1c65acc4f
branches: trunk
changeset: 984885:05f1c65acc4f
user: macallan <macallan%NetBSD.org@localhost>
date: Wed Jul 28 00:36:00 2021 +0000
description:
adjust comments, break a long line
NFC
diffstat:
sys/arch/macppc/dev/fancontrol.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (37 lines):
diff -r 95b0ca9a9148 -r 05f1c65acc4f sys/arch/macppc/dev/fancontrol.c
--- a/sys/arch/macppc/dev/fancontrol.c Tue Jul 27 23:38:42 2021 +0000
+++ b/sys/arch/macppc/dev/fancontrol.c Wed Jul 28 00:36:00 2021 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: fancontrol.c,v 1.1 2021/07/27 23:38:42 macallan Exp $ */
+/* $NetBSD: fancontrol.c,v 1.2 2021/07/28 00:36:00 macallan Exp $ */
/*-
- * Copyright (c) 2018 Michael Lorenz
+ * Copyright (c) 2021 Michael Lorenz
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fancontrol.c,v 1.1 2021/07/27 23:38:42 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fancontrol.c,v 1.2 2021/07/28 00:36:00 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -66,11 +66,12 @@
if (diff < 0) diff = 0;
diff = (100 * diff) / (z->Tmax - z->Tmin);
- /* now adjust each fan to the new duty cycle */
+ /* now adjust each fan to the new speed */
for (i = 0; i < z->nfans; i++) {
step = (z->fans[i].max_rpm - z->fans[i].min_rpm) / 100;
speed = z->fans[i].min_rpm + diff * step;
- DPRINTF("diff %d base %d %d sp %d\n", diff, z->fans[i].min_rpm, z->fans[i].max_rpm, speed);
+ DPRINTF("diff %d base %d %d sp %d\n",
+ diff, z->fans[i].min_rpm, z->fans[i].max_rpm, speed);
z->set_rpm(z->cookie, z->fans[i].num, speed);
}
return 0;
Home |
Main Index |
Thread Index |
Old Index