Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Kishon Vijay Abraham I | e23c920 | 2015-02-23 18:39:57 +0530 | [diff] [blame] | 2 | /** |
| 3 | * linux-compat.h - DesignWare USB3 Linux Compatibiltiy Adapter Header |
| 4 | * |
| 5 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com |
| 6 | * |
| 7 | * Authors: Kishon Vijay Abraham I <kishon@ti.com> |
| 8 | * |
Kishon Vijay Abraham I | e23c920 | 2015-02-23 18:39:57 +0530 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #ifndef __DWC3_LINUX_COMPAT__ |
| 12 | #define __DWC3_LINUX_COMPAT__ |
| 13 | |
Kishon Vijay Abraham I | 9c38ca4 | 2015-02-23 18:40:00 +0530 | [diff] [blame] | 14 | #define dev_WARN(dev, format, arg...) debug(format, ##arg) |
Kishon Vijay Abraham I | e23c920 | 2015-02-23 18:39:57 +0530 | [diff] [blame] | 15 | |
Kishon Vijay Abraham I | e23c920 | 2015-02-23 18:39:57 +0530 | [diff] [blame] | 16 | static inline size_t strlcat(char *dest, const char *src, size_t n) |
| 17 | { |
| 18 | strcat(dest, src); |
| 19 | return strlen(dest) + strlen(src); |
| 20 | } |
| 21 | |
Kishon Vijay Abraham I | e23c920 | 2015-02-23 18:39:57 +0530 | [diff] [blame] | 22 | #endif |