xref: /openbmc/u-boot/include/dm/util.h (revision 9fc2ed40)
1 /*
2  * Copyright (c) 2013 Google, Inc
3  *
4  * SPDX-License-Identifier:	GPL-2.0+
5  */
6 
7 #ifndef __DM_UTIL_H
8 
9 void dm_warn(const char *fmt, ...);
10 
11 #ifdef DEBUG
12 void dm_dbg(const char *fmt, ...);
13 #else
14 static inline void dm_dbg(const char *fmt, ...)
15 {
16 }
17 #endif
18 
19 struct list_head;
20 
21 /**
22  * list_count_items() - Count number of items in a list
23  *
24  * @param head:		Head of list
25  * @return number of items, or 0 if empty
26  */
27 int list_count_items(struct list_head *head);
28 
29 #endif
30