Module Name: src Committed By: jmcneill Date: Sat Jun 29 14:45:10 UTC 2019
Modified Files: src/sys/dev/i2c: fan53555.c Log Message: Fix name of suspend voltage selector property To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/dev/i2c/fan53555.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/i2c/fan53555.c diff -u src/sys/dev/i2c/fan53555.c:1.2 src/sys/dev/i2c/fan53555.c:1.3 --- src/sys/dev/i2c/fan53555.c:1.2 Wed Aug 29 11:08:30 2018 +++ src/sys/dev/i2c/fan53555.c Sat Jun 29 14:45:10 2019 @@ -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 <jmcne...@invisible.ca> @@ -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 @@ fan53555_init(struct fan53555_softc *sc, 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: