/* Command that dumps registers of one or all of the PPCs.  */
static int cmd_ppc_dump(const struct shell *sh, size_t argc, char **argv)
/* Command that dumps registers of one or all of the PPCs.  */
static int cmd_ppc_dump(const struct shell *sh, size_t argc, char **argv)
{
	int ret = 0;
	if (argc <= 1) {
		DT_FOREACH_STATUS_OKAY_VARGS(usb_c_connector, CALL_IF_HAS_PPC, ppc_dump_regs);
	} else {
		const struct device *dev = device_get_binding(argv[1]);
		ret = ppc_dump_regs(dev);
	}
	return ret;
}