Fix regulator names
Do not overwrite the name of regulator. Bring the default name outside the internal while loop!
diff --git a/powerdebug.c b/powerdebug.c
index d0e0e46..624bec9 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -141,8 +141,8 @@
 			goto exit1;
 		}
 
+		strcpy(regulators_info[count-1].name, item->d_name);
 		while((ritem = readdir(dir))) {
-			strcpy(regulators_info[count-1].name, item->d_name);
 			if (strlen(ritem->d_name) < 3)
 				continue;