rockchip_rgb.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. //SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) Fuzhou Rockchip Electronics Co.Ltd
  4. * Author:
  5. * Sandy Huang <hjc@rock-chips.com>
  6. *
  7. * This software is licensed under the terms of the GNU General Public
  8. * License version 2, as published by the Free Software Foundation, and
  9. * may be copied, distributed, and modified under those terms.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. */
  16. #ifdef CONFIG_ROCKCHIP_RGB
  17. struct rockchip_rgb *rockchip_rgb_init(struct device *dev,
  18. struct drm_crtc *crtc,
  19. struct drm_device *drm_dev);
  20. void rockchip_rgb_fini(struct rockchip_rgb *rgb);
  21. #else
  22. static inline struct rockchip_rgb *rockchip_rgb_init(struct device *dev,
  23. struct drm_crtc *crtc,
  24. struct drm_device *drm_dev)
  25. {
  26. return NULL;
  27. }
  28. static inline void rockchip_rgb_fini(struct rockchip_rgb *rgb)
  29. {
  30. }
  31. #endif