Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/sunxi Fix two typos in the Sunxi thermal driver.



details:   https://anonhg.NetBSD.org/src/rev/36e79864bbe3
branches:  trunk
changeset: 364028:36e79864bbe3
user:      bsiegert <bsiegert%NetBSD.org@localhost>
date:      Tue Aug 21 14:09:41 2018 +0000

description:
Fix two typos in the Sunxi thermal driver.

Noticed by rudolf in PR port-arm/53537.

ok jmcneill@

diffstat:

 sys/arch/arm/sunxi/sunxi_thermal.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 940c8082fe19 -r 36e79864bbe3 sys/arch/arm/sunxi/sunxi_thermal.c
--- a/sys/arch/arm/sunxi/sunxi_thermal.c        Tue Aug 21 13:00:16 2018 +0000
+++ b/sys/arch/arm/sunxi/sunxi_thermal.c        Tue Aug 21 14:09:41 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_thermal.c,v 1.5 2018/01/28 18:24:50 jmcneill Exp $ */
+/* $NetBSD: sunxi_thermal.c,v 1.6 2018/08/21 14:09:41 bsiegert Exp $ */
 
 /*-
  * Copyright (c) 2016-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_thermal.c,v 1.5 2018/01/28 18:24:50 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_thermal.c,v 1.6 2018/08/21 14:09:41 bsiegert Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -259,7 +259,7 @@
                mul = H5_TEMP_MUL_L;
        } else {
                base = sensor == 0 ? H5_TEMP_BASE_H_0 : H5_TEMP_BASE_H_1;
-               mul = sensor == 0 ? H5_TEMP_MUL_H_1 : H5_TEMP_MUL_H_1;
+               mul = sensor == 0 ? H5_TEMP_MUL_H_0 : H5_TEMP_MUL_H_1;
        }
 
        return (base - val * mul) >> H5_TEMP_DIV;
@@ -275,7 +275,7 @@
                mul = H5_TEMP_MUL_L;
        } else {
                base = sensor == 0 ? H5_TEMP_BASE_H_0 : H5_TEMP_BASE_H_1;
-               mul = sensor == 0 ? H5_TEMP_MUL_H_1 : H5_TEMP_MUL_H_1;
+               mul = sensor == 0 ? H5_TEMP_MUL_H_0 : H5_TEMP_MUL_H_1;
        }
 
        return (base - (val << H5_TEMP_DIV)) / mul;



Home | Main Index | Thread Index | Old Index