/* Various dodgy firmware might give us nodes and/or properties with conflicting names. That's generally ok, except for exporting via /proc, so munge names here to ensure they're unique.  */
static int duplicate_name(struct proc_dir_entry *de, const char *name)
/* Various dodgy firmware might give us nodes and/or properties with conflicting names. That's generally ok, except for exporting via /proc, so munge names here to ensure they're unique.  */
static int duplicate_name(struct proc_dir_entry *de, const char *name)
{
	struct proc_dir_entry *ent;
	int found = 0;
	spin_lock(&proc_subdir_lock);
	for (ent = de->subdir; ent != NULL; ent = ent->next) {
		if (strcmp(ent->name, name) == 0) {
			found = 1;
			break;
		}
	}
	spin_unlock(&proc_subdir_lock);
	return found;
}