Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/fdt Honour the polarity of the pin xref



details:   https://anonhg.NetBSD.org/src/rev/3d14ea502db6
branches:  trunk
changeset: 451452:3d14ea502db6
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu May 23 20:49:44 2019 +0000

description:
Honour the polarity of the pin xref

diffstat:

 sys/dev/fdt/fixedregulator.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 9301064039af -r 3d14ea502db6 sys/dev/fdt/fixedregulator.c
--- a/sys/dev/fdt/fixedregulator.c      Thu May 23 16:05:01 2019 +0000
+++ b/sys/dev/fdt/fixedregulator.c      Thu May 23 20:49:44 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fixedregulator.c,v 1.6 2018/01/28 18:21:52 jmcneill Exp $ */
+/* $NetBSD: fixedregulator.c,v 1.7 2019/05/23 20:49:44 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fixedregulator.c,v 1.6 2018/01/28 18:21:52 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fixedregulator.c,v 1.7 2019/05/23 20:49:44 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -164,13 +164,13 @@
 
        if (enable) {
                if (sc->sc_pin != NULL)
-                       fdtbus_gpio_write_raw(sc->sc_pin, sc->sc_enable_val);
+                       fdtbus_gpio_write(sc->sc_pin, sc->sc_enable_val);
                if (sc->sc_delay > 0)
                        delay(sc->sc_delay);
        } else {
                if (sc->sc_always_on)
                        return EIO;
-               fdtbus_gpio_write_raw(sc->sc_pin, !sc->sc_enable_val);
+               fdtbus_gpio_write(sc->sc_pin, !sc->sc_enable_val);
        }
        return 0;
 }



Home | Main Index | Thread Index | Old Index