aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/typec/altmodes/displayport.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/typec/altmodes/displayport.h')
-rw-r--r--drivers/usb/typec/altmodes/displayport.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/typec/altmodes/displayport.h b/drivers/usb/typec/altmodes/displayport.h
new file mode 100644
index 000000000000..e120364da9fd
--- /dev/null
+++ b/drivers/usb/typec/altmodes/displayport.h
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#if IS_ENABLED(CONFIG_TYPEC_DP_ALTMODE)
+int dp_altmode_probe(struct typec_altmode *alt);
+void dp_altmode_remove(struct typec_altmode *alt);
+#else
+int dp_altmode_probe(struct typec_altmode *alt) { return -ENOTSUPP; }
+void dp_altmode_remove(struct typec_altmode *alt) { }
+#endif /* CONFIG_TYPEC_DP_ALTMODE */