Searched refs:to_typec_port (Results 1 – 2 of 2) sorted by relevance
74 struct typec_port *port = to_typec_port(dev->parent); in get_pd_product_type()320 return to_typec_port(alt->dev.parent->parent->parent); in typec_altmode2port()322 return to_typec_port(alt->dev.parent->parent); in typec_altmode2port()324 return to_typec_port(alt->dev.parent); in typec_altmode2port()475 ids = &to_typec_port(dev)->mode_ids; in altmode_id_get()489 ids = &to_typec_port(dev)->mode_ids; in altmode_id_remove()1211 struct typec_port *port = to_typec_port(dev); in preferred_role_store()1245 struct typec_port *port = to_typec_port(dev); in preferred_role_show()1261 struct typec_port *port = to_typec_port(dev); in data_role_store()1292 struct typec_port *port = to_typec_port(dev); in data_role_show()[all …]
59 #define to_typec_port(_dev_) container_of(_dev_, struct typec_port, dev) macro