1 /* $NetBSD: propname_escapes.c,v 1.1.1.3 2019/12/22 12:34:05 skrll Exp $ */
2
3 // SPDX-License-Identifier: LGPL-2.1-or-later
4 /*
5 * libfdt - Flat Device Tree manipulation
6 * Testcase for fdt_getprop()
7 * Copyright (C) 2006 David Gibson, IBM Corporation.
8 * Copyright (C) 2012 NVIDIA CORPORATION. All rights reserved.
9 */
10
11 #include <stdlib.h>
12 #include <stdio.h>
13 #include <string.h>
14 #include <stdint.h>
15
16 #include <libfdt.h>
17
18 #include "tests.h"
19
main(int argc,char * argv[])20 int main(int argc, char *argv[])
21 {
22 void *fdt;
23
24 test_init(argc, argv);
25 fdt = load_blob_arg(argc, argv);
26
27 check_getprop_cell(fdt, 0, "#address-cells", 1);
28 check_getprop_cell(fdt, 0, "#gpio-cells", 2);
29
30 PASS();
31 }
32