of_coresight.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #ifndef __LINUX_OF_CORESIGHT_H
  13. #define __LINUX_OF_CORESIGHT_H
  14. #ifdef CONFIG_OF_CORESIGHT
  15. extern struct coresight_platform_data *of_get_coresight_platform_data(
  16. struct device *dev, struct device_node *node);
  17. extern struct coresight_cti_data *of_get_coresight_cti_data(
  18. struct device *dev, struct device_node *node);
  19. #else
  20. static inline struct coresight_platform_data *of_get_coresight_platform_data(
  21. struct device *dev, struct device_node *node)
  22. {
  23. return NULL;
  24. }
  25. static inline struct coresight_cti_data *of_get_coresight_cti_data(
  26. struct device *dev, struct device_node *node)
  27. {
  28. return NULL;
  29. }
  30. #endif
  31. #endif