]> git.ipfire.org Git - people/ms/u-boot.git/blame - drivers/usb/dwc3/linux-compat.h
usb: dwc3: ep0: make dwc3 ep0 build in uboot
[people/ms/u-boot.git] / drivers / usb / dwc3 / linux-compat.h
CommitLineData
18be4cb1
KVA
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 *
18be4cb1
KVA
8 * SPDX-License-Identifier: GPL-2.0
9 *
10 */
11
12#ifndef __DWC3_LINUX_COMPAT__
13#define __DWC3_LINUX_COMPAT__
14
15#define pr_debug(format) debug(format)
16#define WARN(val, format, arg...) debug(format, ##arg)
b6d959ac 17#define dev_WARN(dev, format, arg...) debug(format, ##arg)
18be4cb1
KVA
18#define WARN_ON_ONCE(val) debug("Error %d\n", val)
19
20#define BUILD_BUG_ON_NOT_POWER_OF_2(n)
21
22static inline size_t strlcat(char *dest, const char *src, size_t n)
23{
24 strcat(dest, src);
25 return strlen(dest) + strlen(src);
26}
27
28#endif