/* Return: 0 is there is no match(is unique); if there is a match(we dont have a unique name), return -EINVAL.  */
static int _rproc_name_is_unique(struct udevice *dev, struct dm_rproc_uclass_pdata *uc_pdata, const void *data)
/* Return: 0 is there is no match(is unique); if there is a match(we dont have a unique name), return -EINVAL.  */
static int _rproc_name_is_unique(struct udevice *dev, struct dm_rproc_uclass_pdata *uc_pdata, const void *data)
{
	const char *check_name = data;
	if (!uc_pdata->name || !check_name)
		return 0;
	if (strlen(uc_pdata->name) != strlen(check_name))
		return 0;
	if (!strcmp(uc_pdata->name, check_name))
		return -EINVAL;
	return 0;
}