1/* SPDX-License-Identifier: GPL-2.0 */
2#if IS_ENABLED(CONFIG_TYPEC_DP_ALTMODE)
3int dp_altmode_probe(struct typec_altmode *alt);
4void dp_altmode_remove(struct typec_altmode *alt);
5#else
6int dp_altmode_probe(struct typec_altmode *alt) { return -ENOTSUPP; }
7void dp_altmode_remove(struct typec_altmode *alt) { }
8#endif /* CONFIG_TYPEC_DP_ALTMODE */
9

source code of linux/drivers/usb/typec/altmodes/displayport.h