1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (c) 2013 Google, Inc
10 void dm_warn(const char *fmt, ...);
12 static inline void dm_warn(const char *fmt, ...)
20 * list_count_items() - Count number of items in a list
22 * @param head: Head of list
23 * @return number of items, or 0 if empty
25 int list_count_items(struct list_head *head);
27 /* Dump out a tree of all devices */
28 void dm_dump_all(void);
30 /* Dump out a list of uclasses and their devices */
31 void dm_dump_uclass(void);
33 #ifdef CONFIG_DEBUG_DEVRES
34 /* Dump out a list of device resources */
35 void dm_dump_devres(void);
37 static inline void dm_dump_devres(void)
42 /* Dump out a list of drivers */
43 void dm_dump_drivers(void);