/* Shell command that prints the vbus measures for all available USB-C ports.  */
static int cmd_tcpc_vbus(const struct shell *sh, size_t argc, char **argv)
/* Shell command that prints the vbus measures for all available USB-C ports.  */
static int cmd_tcpc_vbus(const struct shell *sh, size_t argc, char **argv)
{
	int ret = 0;
	if (argc <= 1) {
		DT_FOREACH_STATUS_OKAY(usb_c_connector, TCPC_VBUS_CONN_NODE);
	} else {
		const struct device *dev = device_get_binding(argv[1]);
		if (dev != NULL) {
			TCPC_VBUS_DEV(dev);
		} else {
			ret = -ENODEV;
		}
	}
	return ret;
}