hgsl_sysfs.h 791 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. */
  6. #ifndef __HGSL_SYSFS_H
  7. #define __HGSL_SYSFS_H
  8. #include <linux/device.h>
  9. #include <linux/platform_device.h>
  10. #ifdef CONFIG_SYSFS
  11. int hgsl_sysfs_client_init(struct hgsl_priv *priv);
  12. void hgsl_sysfs_client_release(struct hgsl_priv *priv);
  13. int hgsl_sysfs_init(struct platform_device *pdev);
  14. void hgsl_sysfs_release(struct platform_device *pdev);
  15. #else
  16. int hgsl_sysfs_client_init(struct hgsl_priv *priv)
  17. {
  18. return 0;
  19. }
  20. void hgsl_sysfs_client_release(struct hgsl_priv *priv)
  21. {
  22. }
  23. int hgsl_sysfs_init(struct platform_device *pdev)
  24. {
  25. return 0;
  26. }
  27. void hgsl_sysfs_release(struct platform_device *pdev)
  28. {
  29. }
  30. #endif /* CONFIG_SYSFS */
  31. #endif /* __HGSL_SYSFS_H */