/* Command that requests one or all of the PPCs to try exiting the dead battery mode.  */
static int cmd_ppc_exit_db(const struct shell *sh, size_t argc, char **argv)
/* Command that requests one or all of the PPCs to try exiting the dead battery mode.  */
static int cmd_ppc_exit_db(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_exit_dead_battery_mode);
	} else {
		const struct device *dev = device_get_binding(argv[1]);
		ret = ppc_exit_dead_battery_mode(dev);
	}
	return ret;
}