commit | fccac91e1fbc9dfde60cc509b78ee8fdbfbb1340 | [log] [tgz] |
---|---|---|
author | Amit Arora <amit.arora@linaro.org> | Tue Aug 03 16:15:09 2010 +0530 |
committer | Amit Arora <amit.arora@linaro.org> | Tue Aug 03 16:15:09 2010 +0530 |
tree | 43801175fd2777be1b1e741478f06e175ecb896b | |
parent | 7ef178c0b02829940518fc53959cf3425e055c01 [diff] [blame] |
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;