]>
git.ipfire.org Git - people/ms/u-boot.git/blob - drivers/usb/dwc3/linux-compat.h
2 * linux-compat.h - DesignWare USB3 Linux Compatibiltiy Adapter Header
4 * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com
6 * Authors: Kishon Vijay Abraham I <kishon@ti.com>
8 * SPDX-License-Identifier: GPL-2.0
12 #ifndef __DWC3_LINUX_COMPAT__
13 #define __DWC3_LINUX_COMPAT__
15 #define WARN(val, format, arg...) debug(format, ##arg)
16 #define dev_WARN(dev, format, arg...) debug(format, ##arg)
18 static inline size_t strlcat(char *dest
, const char *src
, size_t n
)
21 return strlen(dest
) + strlen(src
);
24 static inline void *devm_kzalloc(struct device
*dev
, unsigned int size
,
27 return kzalloc(size
, flags
);