sde_rotator_r1_debug.c 890 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
  4. */
  5. #define pr_fmt(fmt) "%s: " fmt, __func__
  6. #include <linux/types.h>
  7. #include <linux/kernel.h>
  8. #include <linux/slab.h>
  9. #include <linux/uaccess.h>
  10. #include <linux/debugfs.h>
  11. #include "sde_rotator_r1_debug.h"
  12. #include "sde_rotator_core.h"
  13. #include "sde_rotator_r1.h"
  14. #include "sde_rotator_r1_internal.h"
  15. #if defined(CONFIG_MSM_SDE_ROTATOR_EVTLOG_DEBUG) && \
  16. defined(CONFIG_DEBUG_FS)
  17. /*
  18. * sde_rotator_r1_create_debugfs - Setup rotator r1 debugfs directory structure.
  19. * @rot_dev: Pointer to rotator device
  20. */
  21. int sde_rotator_r1_create_debugfs(struct sde_rot_mgr *mgr,
  22. struct dentry *debugfs_root)
  23. {
  24. struct sde_rotator_r1_data *hw_data;
  25. if (!mgr || !debugfs_root || !mgr->hw_data)
  26. return -EINVAL;
  27. hw_data = mgr->hw_data;
  28. /* add debugfs */
  29. return 0;
  30. }
  31. #endif