summaryrefslogtreecommitdiff
path: root/tools/power/cpupower/debug
diff options
context:
space:
mode:
authorSriram Raghunathan <sriram@marirs.net.in>2015-10-23 09:52:45 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-11-02 02:28:59 +0100
commit57ab3b08725163bfe385aaeea6837f9b1213af3d (patch)
treeae161ce58eae6922ed2617c29d208c4fceb99012 /tools/power/cpupower/debug
parent19c9fb896f54ade387676f134ce1de9bcd3cd478 (diff)
Creating a common structure initialization pattern for struct option
This patch tries to creates a common structure initialization within the cpupower tool. Previously the ``struct option`` was initialized using `designated initializer` technique which was not needed. There were conflicting initialization methods seen with bench/main.c & others. Signed-off-by: Sriram Raghunathan <sriram@marirs.net.in> Signed-off-by: Thomas Renninger <trenn@suse.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/power/cpupower/debug')
-rw-r--r--tools/power/cpupower/debug/i386/dump_psb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/cpupower/debug/i386/dump_psb.c b/tools/power/cpupower/debug/i386/dump_psb.c
index 8d6a47514253..2c768cf70128 100644
--- a/tools/power/cpupower/debug/i386/dump_psb.c
+++ b/tools/power/cpupower/debug/i386/dump_psb.c
@@ -134,7 +134,7 @@ next_one:
}
static struct option info_opts[] = {
- {.name = "numpst", .has_arg=no_argument, .flag=NULL, .val='n'},
+ {"numpst", no_argument, NULL, 'n'},
};
void print_help(void)