Alexander Shishkin | e443b33 | 2012-05-11 17:25:46 +0300 | [diff] [blame] | 1 | /* |
| 2 | * debug.h - ChipIdea USB driver debug interfaces |
| 3 | * |
| 4 | * Copyright (C) 2008 Chipidea - MIPS Technologies, Inc. All rights reserved. |
| 5 | * |
| 6 | * Author: David Lopo |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License version 2 as |
| 10 | * published by the Free Software Foundation. |
| 11 | */ |
| 12 | |
| 13 | #ifndef __DRIVERS_USB_CHIPIDEA_DEBUG_H |
| 14 | #define __DRIVERS_USB_CHIPIDEA_DEBUG_H |
| 15 | |
| 16 | #ifdef CONFIG_USB_CHIPIDEA_DEBUG |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 17 | int dbg_create_files(struct ci_hdrc *ci); |
| 18 | void dbg_remove_files(struct ci_hdrc *ci); |
Alexander Shishkin | e443b33 | 2012-05-11 17:25:46 +0300 | [diff] [blame] | 19 | #else |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 20 | static inline int dbg_create_files(struct ci_hdrc *ci) |
Alexander Shishkin | e443b33 | 2012-05-11 17:25:46 +0300 | [diff] [blame] | 21 | { |
| 22 | return 0; |
| 23 | } |
| 24 | |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 25 | static inline void dbg_remove_files(struct ci_hdrc *ci) |
Alexander Shishkin | e443b33 | 2012-05-11 17:25:46 +0300 | [diff] [blame] | 26 | { |
Alexander Shishkin | e443b33 | 2012-05-11 17:25:46 +0300 | [diff] [blame] | 27 | } |
| 28 | #endif |
| 29 | |
| 30 | #endif /* __DRIVERS_USB_CHIPIDEA_DEBUG_H */ |