to_typec_switch_dev
kfree(to_typec_switch_dev(dev));
if (to_typec_switch_dev(dev) == sw_devs[i]) {
return dev ? to_typec_switch_dev(dev) : ERR_PTR(-EPROBE_DEFER);