secdp_sysfs.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 and
  7. * only version 2 as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. */
  15. #ifndef __SECDP_SYSFS_H
  16. #define __SECDP_SYSFS_H
  17. #include "secdp.h"
  18. struct secdp_sysfs_in {
  19. struct device *dev;
  20. struct dp_parser *parser;
  21. struct dp_ctrl *ctrl;
  22. struct dp_link *link;
  23. struct dp_panel *panel;
  24. struct dp_power *power;
  25. struct dp_catalog *catalog;
  26. struct secdp_misc *sec;
  27. };
  28. struct secdp_sysfs {
  29. struct class dp_class;
  30. };
  31. /**
  32. * secdp_sysfs_get() - get the functionalities of secdp sysfs module
  33. *
  34. *
  35. * return: a pointer to dp_link struct
  36. */
  37. struct secdp_sysfs *secdp_sysfs_get(struct secdp_sysfs_in *in);
  38. /**
  39. * secdp_sysfs_put() - releases the dp test module's resources
  40. *
  41. * @dp_link: an instance of dp_link module
  42. *
  43. */
  44. void secdp_sysfs_put(struct device *dev, struct secdp_sysfs *dp_sysfs);
  45. #endif /*__SECDP_SYSFS_H*/