dp_gpio_hpd.h 660 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _DP_GPIO_HPD_H_
  6. #define _DP_GPIO_HPD_H_
  7. #include "dp_hpd.h"
  8. /**
  9. * dp_gpio_hpd_get() - configure and get the DisplayPlot HPD module data
  10. *
  11. * @dev: device instance of the caller
  12. * return: pointer to allocated gpio hpd module data
  13. *
  14. * This function sets up the gpio hpd module
  15. */
  16. struct dp_hpd *dp_gpio_hpd_get(struct device *dev,
  17. struct dp_hpd_cb *cb);
  18. /**
  19. * dp_gpio_hpd_put()
  20. *
  21. * Cleans up dp_hpd instance
  22. *
  23. * @hpd: instance of gpio_hpd
  24. */
  25. void dp_gpio_hpd_put(struct dp_hpd *hpd);
  26. #endif /* _DP_GPIO_HPD_H_ */