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 name of suspend voltage selector property



details:   https://anonhg.NetBSD.org/src/rev/42008299fd46
branches:  trunk
changeset: 842389:42008299fd46
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Jun 29 14:45:10 2019 +0000

description:
Fix name of suspend voltage selector property

diffstat:

 sys/dev/i2c/fan53555.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 23093dcce019 -r 42008299fd46 sys/dev/i2c/fan53555.c
--- a/sys/dev/i2c/fan53555.c    Sat Jun 29 13:30:59 2019 +0000
+++ b/sys/dev/i2c/fan53555.c    Sat Jun 29 14:45:10 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fan53555.c,v 1.2 2018/08/29 11:08:30 jmcneill Exp $ */
+/* $NetBSD: fan53555.c,v 1.3 2019/06/29 14:45:10 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fan53555.c,v 1.2 2018/08/29 11:08:30 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fan53555.c,v 1.3 2019/06/29 14:45:10 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -241,7 +241,8 @@
                return ENXIO;
        }
 
-       of_getprop_uint32(sc->sc_phandle, "suspend_voltage_selector",
+       sc->sc_suspend_voltage_selector = -1;
+       of_getprop_uint32(sc->sc_phandle, "fcs,suspend-voltage-selector",
            &sc->sc_suspend_voltage_selector);
        switch (sc->sc_suspend_voltage_selector) {
        case 0:



Home | Main Index | Thread Index | Old Index