xref: /OK3568_Linux_fs/u-boot/drivers/usb/dwc3/linux-compat.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /**
2  * linux-compat.h - DesignWare USB3 Linux Compatibiltiy Adapter  Header
3  *
4  * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com
5  *
6  * Authors: Kishon Vijay Abraham I <kishon@ti.com>
7  *
8  * SPDX-License-Identifier:	GPL-2.0
9  *
10  */
11 
12 #ifndef __DWC3_LINUX_COMPAT__
13 #define __DWC3_LINUX_COMPAT__
14 
15 #define dev_WARN(dev, format, arg...)	debug(format, ##arg)
16 
strlcat(char * dest,const char * src,size_t n)17 static inline size_t strlcat(char *dest, const char *src, size_t n)
18 {
19 	strcat(dest, src);
20 	return strlen(dest) + strlen(src);
21 }
22 
23 #endif
24