dp_debug.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _DP_DEBUG_H_
  6. #define _DP_DEBUG_H_
  7. #include "dp_panel.h"
  8. #include "dp_link.h"
  9. #if defined(CONFIG_DEBUG_FS)
  10. /**
  11. * msm_dp_debug_init() - configure and get the DisplayPlot debug module data
  12. *
  13. * @dev: device instance of the caller
  14. * @panel: instance of panel module
  15. * @link: instance of link module
  16. * @connector: double pointer to display connector
  17. * @root: connector's debugfs root
  18. * @is_edp: set for eDP connectors / panels
  19. * return: pointer to allocated debug module data
  20. *
  21. * This function sets up the debug module and provides a way
  22. * for debugfs input to be communicated with existing modules
  23. */
  24. int msm_dp_debug_init(struct device *dev, struct msm_dp_panel *panel,
  25. struct msm_dp_link *link,
  26. struct drm_connector *connector,
  27. struct dentry *root,
  28. bool is_edp);
  29. #else
  30. static inline
  31. int msm_dp_debug_init(struct device *dev, struct msm_dp_panel *panel,
  32. struct msm_dp_link *link,
  33. struct drm_connector *connector,
  34. struct dentry *root,
  35. bool is_edp)
  36. {
  37. return -EINVAL;
  38. }
  39. #endif /* defined(CONFIG_DEBUG_FS) */
  40. #endif /* _DP_DEBUG_H_ */