summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2019-01-02 18:48:07 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2019-01-02 18:48:07 +0000
commit225e685eb07cad1449971b5128fea9cb024081a2 (patch)
treef3ce763ff3409fc601c7b9d5dc3b31466cc1154e /sys/dev
parentd30e5aec9c7bbcd8e1ee8d6508afc36fa517668b (diff)
A fixed regulator's minimum voltage attribute is called regulator-min-microvolt
instead of regulator-min-voltage. ok kettenis@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ofw/ofw_regulator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ofw/ofw_regulator.c b/sys/dev/ofw/ofw_regulator.c
index 1ab59578cfc..83e4eb1274e 100644
--- a/sys/dev/ofw/ofw_regulator.c
+++ b/sys/dev/ofw/ofw_regulator.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofw_regulator.c,v 1.8 2018/10/23 16:41:53 patrick Exp $ */
+/* $OpenBSD: ofw_regulator.c,v 1.9 2019/01/02 18:48:06 patrick Exp $ */
/*
* Copyright (c) 2016 Mark Kettenis
*
@@ -150,7 +150,7 @@ regulator_get_voltage(uint32_t phandle)
return 0;
if (OF_is_compatible(node, "regulator-fixed"))
- return OF_getpropint(node, "regulator-min-voltage", 0);
+ return OF_getpropint(node, "regulator-min-microvolt", 0);
if (OF_is_compatible(node, "regulator-gpio"))
return regulator_gpio_get_voltage(node);