xref: /linux/drivers/usb/typec/retimer.h (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef __USB_TYPEC_RETIMER__
4 #define __USB_TYPEC_RETIMER__
5 
6 #include <linux/usb/typec_retimer.h>
7 
8 struct typec_retimer {
9 	struct device dev;
10 	typec_retimer_set_fn_t set;
11 };
12 
13 #define to_typec_retimer(_dev_) container_of(_dev_, struct typec_retimer, dev)
14 
15 extern const struct device_type typec_retimer_dev_type;
16 
17 #define is_typec_retimer(dev) ((dev)->type == &typec_retimer_dev_type)
18 
19 #endif /* __USB_TYPEC_RETIMER__ */
20