Merge tag 'qcom-drivers-for-6.9-2' of https://git.kernel.org/pub/scm/linux/kernel...
[linux-block.git] / include / drm / bridge / aux-bridge.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2023 Linaro Ltd.
4  *
5  * Author: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
6  */
7 #ifndef DRM_AUX_BRIDGE_H
8 #define DRM_AUX_BRIDGE_H
9
10 #include <drm/drm_connector.h>
11
12 #if IS_ENABLED(CONFIG_DRM_AUX_BRIDGE)
13 int drm_aux_bridge_register(struct device *parent);
14 #else
15 static inline int drm_aux_bridge_register(struct device *parent)
16 {
17         return 0;
18 }
19 #endif
20
21 #if IS_ENABLED(CONFIG_DRM_AUX_HPD_BRIDGE)
22 struct device *drm_dp_hpd_bridge_register(struct device *parent,
23                                           struct device_node *np);
24 void drm_aux_hpd_bridge_notify(struct device *dev, enum drm_connector_status status);
25 #else
26 static inline struct device *drm_dp_hpd_bridge_register(struct device *parent,
27                                                         struct device_node *np)
28 {
29         return NULL;
30 }
31
32 static inline void drm_aux_hpd_bridge_notify(struct device *dev, enum drm_connector_status status)
33 {
34 }
35 #endif
36
37 #endif