Merge tag 'dm-pull-8aug21' of https://source.denx.de/u-boot/custodians/u-boot-dm
Use log subsystem for dm_warn() Various minor bug fixes
This commit is contained in:
@@ -159,7 +159,8 @@ void *uclass_get_priv(const struct uclass *uc);
|
||||
*
|
||||
* @key: ID to look up
|
||||
* @ucp: Returns pointer to uclass (there is only one per ID)
|
||||
* @return 0 if OK, -ve on error
|
||||
* @return 0 if OK, -EDEADLK if driver model is not yet inited, other -ve on
|
||||
* other error
|
||||
*/
|
||||
int uclass_get(enum uclass_id key, struct uclass **ucp);
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#define __DM_UTIL_H
|
||||
|
||||
#if CONFIG_IS_ENABLED(DM_WARN)
|
||||
void dm_warn(const char *fmt, ...);
|
||||
#define dm_warn(fmt...) log(LOGC_DM, LOGL_WARNING, ##fmt)
|
||||
#else
|
||||
static inline void dm_warn(const char *fmt, ...)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user