Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/fdt I guess fdtbus_regulator_get_voltage() should ch...
details: https://anonhg.NetBSD.org/src/rev/4eaffe3b5442
branches: trunk
changeset: 360322:4eaffe3b5442
user: bouyer <bouyer%NetBSD.org@localhost>
date: Tue Mar 06 17:24:57 2018 +0000
description:
I guess fdtbus_regulator_get_voltage() should check for the get_voltage()
callback, not set_voltage()
diffstat:
sys/dev/fdt/fdt_regulator.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 877eeb514268 -r 4eaffe3b5442 sys/dev/fdt/fdt_regulator.c
--- a/sys/dev/fdt/fdt_regulator.c Tue Mar 06 13:47:25 2018 +0000
+++ b/sys/dev/fdt/fdt_regulator.c Tue Mar 06 17:24:57 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_regulator.c,v 1.4 2017/09/22 15:33:21 jmcneill Exp $ */
+/* $NetBSD: fdt_regulator.c,v 1.5 2018/03/06 17:24:57 bouyer Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdt_regulator.c,v 1.4 2017/09/22 15:33:21 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_regulator.c,v 1.5 2018/03/06 17:24:57 bouyer Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -150,7 +150,7 @@
{
struct fdtbus_regulator_controller *rc = reg->reg_rc;
- if (rc->rc_funcs->set_voltage == NULL)
+ if (rc->rc_funcs->get_voltage == NULL)
return EINVAL;
return rc->rc_funcs->get_voltage(rc->rc_dev, puvol);
Home |
Main Index |
Thread Index |
Old Index