Searched refs:typec_switch (Results 1 – 8 of 8) sorted by relevance
12 struct typec_switch;27 struct typec_switch *fwnode_typec_switch_get(struct fwnode_handle *fwnode);28 void typec_switch_put(struct typec_switch *sw);29 int typec_switch_set(struct typec_switch *sw,32 static inline struct typec_switch *typec_switch_get(struct device *dev) in typec_switch_get()
71 struct typec_switch *typec_switch; member260 ret = typec_switch_set(nb7->typec_switch, orientation); in nb7vpq904m_sw_set()449 nb7->typec_switch = fwnode_typec_switch_get(dev->fwnode); in nb7vpq904m_probe()450 if (IS_ERR(nb7->typec_switch)) in nb7vpq904m_probe()451 return dev_err_probe(dev, PTR_ERR(nb7->typec_switch), in nb7vpq904m_probe()500 typec_switch_put(nb7->typec_switch); in nb7vpq904m_probe()516 typec_switch_put(nb7->typec_switch); in nb7vpq904m_remove()
70 struct typec_switch *typec_switch; member223 typec_switch_set(alt_port->typec_switch, alt_port->orientation); in pmic_glink_altmode_worker()506 alt_port->typec_switch = fwnode_typec_switch_get(fwnode); in pmic_glink_altmode_probe()507 if (IS_ERR(alt_port->typec_switch)) { in pmic_glink_altmode_probe()509 return dev_err_probe(dev, PTR_ERR(alt_port->typec_switch), in pmic_glink_altmode_probe()515 alt_port->typec_switch); in pmic_glink_altmode_probe()
22 struct typec_switch { struct71 struct typec_switch *fwnode_typec_switch_get(struct fwnode_handle *fwnode) in fwnode_typec_switch_get()74 struct typec_switch *sw; in fwnode_typec_switch_get()126 void typec_switch_put(struct typec_switch *sw) in typec_switch_put()203 int typec_switch_set(struct typec_switch *sw, in typec_switch_set()
10 struct typec_switch;56 struct typec_switch *sw;
249 struct typec_switch_dev *typec_switch; member1069 ctx->typec.typec_switch = typec_switch_register(dev, &sw_desc); in anx7411_register_switch()1070 if (IS_ERR(ctx->typec.typec_switch)) { in anx7411_register_switch()1072 return PTR_ERR(ctx->typec.typec_switch); in anx7411_register_switch()1109 if (ctx->typec.typec_switch) { in anx7411_unregister_switch()1110 typec_switch_unregister(ctx->typec.typec_switch); in anx7411_unregister_switch()1111 ctx->typec.typec_switch = NULL; in anx7411_unregister_switch()
58 struct typec_switch *ori_sw;
60 struct typec_switch *port_switch[PMIC_GLINK_MAX_PORTS];