Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c fix statement with no effect (Dave Tyson)
details: https://anonhg.NetBSD.org/src/rev/d31aa1bedfce
branches: trunk
changeset: 328681:d31aa1bedfce
user: christos <christos%NetBSD.org@localhost>
date: Sun Apr 13 12:42:47 2014 +0000
description:
fix statement with no effect (Dave Tyson)
diffstat:
sys/dev/i2c/w83795g.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b9d753331609 -r d31aa1bedfce sys/dev/i2c/w83795g.c
--- a/sys/dev/i2c/w83795g.c Sun Apr 13 12:40:00 2014 +0000
+++ b/sys/dev/i2c/w83795g.c Sun Apr 13 12:42:47 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: w83795g.c,v 1.1 2013/08/06 15:58:25 soren Exp $ */
+/* $NetBSD: w83795g.c,v 1.2 2014/04/13 12:42:47 christos Exp $ */
/*
* Copyright (c) 2013 Soren S. Jorvang. All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: w83795g.c,v 1.1 2013/08/06 15:58:25 soren Exp $");
+__KERNEL_RCSID(0, "$NetBSD: w83795g.c,v 1.2 2014/04/13 12:42:47 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -339,7 +339,7 @@
index = W83795G_FHL1LSB + (sensor->msb - W83795G_FANIN1) / 2;
iic_smbus_read_byte(sc->sc_tag, sc->sc_addr, index, &lsb, 0);
if (index % 2)
- lsb >> 4;
+ lsb >>= 4;
else
lsb &= 0xf;
limits->sel_warnmin = 1350000 / (msb << 4 | lsb);
Home |
Main Index |
Thread Index |
Old Index