summaryrefslogtreecommitdiffstats
path: root/libpdbg/device.c
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2018-10-25 16:46:42 +1100
committerAlistair Popple <alistair@popple.id.au>2018-11-09 11:27:54 +1100
commit60b2ec3a95ddebd8943bdf5d61f700d7d2fca923 (patch)
tree7d6b66c65f5712e06aa27b481710dfc73b9653d8 /libpdbg/device.c
parentcf249e7912069d6fece97e575ce3bae7365f8677 (diff)
downloadpdbg-60b2ec3a95ddebd8943bdf5d61f700d7d2fca923.tar.gz
pdbg-60b2ec3a95ddebd8943bdf5d61f700d7d2fca923.zip
libpdbg: Remove device.h
Signed-off-by: Alistair Popple <alistair@popple.id.au> Reviewed-by: Amitay Isaacs <amitay@ozlabs.org>
Diffstat (limited to 'libpdbg/device.c')
-rw-r--r--libpdbg/device.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libpdbg/device.c b/libpdbg/device.c
index 4a9d39a..9557172 100644
--- a/libpdbg/device.c
+++ b/libpdbg/device.c
@@ -14,17 +14,19 @@
* limitations under the License.
*/
-#include "device.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "target.h"
#include <libfdt/libfdt.h>
#include <libfdt/libfdt_internal.h>
+#include <ccan/list/list.h>
+#include <ccan/short_types/short_types.h>
#include <ccan/str/str.h>
#include <endian.h>
#include "debug.h"
+#include "compiler.h"
#define zalloc(size) calloc(1, size)
#define prerror printf
@@ -34,7 +36,7 @@
list_for_each(&parent->children, node, list)
/* Used to give unique handles. */
-static u32 last_phandle = 0;
+static uint32_t last_phandle = 0;
static struct pdbg_target *pdbg_dt_root;
OpenPOWER on IntegriCloud