debug.h 740 B

123456789101112131415161718192021222324252627282930
  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. #ifndef __DRIVERS_USB_CHIPIDEA_DEBUG_H
  13. #define __DRIVERS_USB_CHIPIDEA_DEBUG_H
  14. #ifdef CONFIG_USB_CHIPIDEA_DEBUG
  15. int dbg_create_files(struct ci_hdrc *ci);
  16. void dbg_remove_files(struct ci_hdrc *ci);
  17. #else
  18. static inline int dbg_create_files(struct ci_hdrc *ci)
  19. {
  20. return 0;
  21. }
  22. static inline void dbg_remove_files(struct ci_hdrc *ci)
  23. {
  24. }
  25. #endif
  26. #endif /* __DRIVERS_USB_CHIPIDEA_DEBUG_H */