Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/samsung OF_getprop -> of_getprop_bool
details: https://anonhg.NetBSD.org/src/rev/7cabc61e61b1
branches: trunk
changeset: 342458:7cabc61e61b1
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Tue Dec 22 22:34:42 2015 +0000
description:
OF_getprop -> of_getprop_bool
diffstat:
sys/arch/arm/samsung/exynos_pinctrl.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diffs (30 lines):
diff -r 51a4c94c1b02 -r 7cabc61e61b1 sys/arch/arm/samsung/exynos_pinctrl.c
--- a/sys/arch/arm/samsung/exynos_pinctrl.c Tue Dec 22 22:32:54 2015 +0000
+++ b/sys/arch/arm/samsung/exynos_pinctrl.c Tue Dec 22 22:34:42 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exynos_pinctrl.c,v 1.4 2015/12/22 03:36:01 marty Exp $ */
+/* $NetBSD: exynos_pinctrl.c,v 1.5 2015/12/22 22:34:42 jmcneill Exp $ */
/*-
* Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
#include "gpio.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: exynos_pinctrl.c,v 1.4 2015/12/22 03:36:01 marty Exp $");
+__KERNEL_RCSID(1, "$NetBSD: exynos_pinctrl.c,v 1.5 2015/12/22 22:34:42 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -96,10 +96,7 @@
for (child = OF_child(faa->faa_phandle); child;
child = OF_peer(child)) {
- char result[64];
- error = OF_getprop(child, "gpio-controller", result,
- sizeof(result));
- if (error == -1)
+ if (of_getprop_bool(child, "gpio-controller") == false)
continue;
exynos_gpio_bank_config(sc,child);
}
Home |
Main Index |
Thread Index |
Old Index