diff options
author | Sriram Raghunathan <sriram@marirs.net.in> | 2015-10-23 09:52:45 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-11-02 02:28:59 +0100 |
commit | 57ab3b08725163bfe385aaeea6837f9b1213af3d (patch) | |
tree | ae161ce58eae6922ed2617c29d208c4fceb99012 /tools/power/cpupower/utils/cpupower-info.c | |
parent | cpupower: Enable disabled Cstates if they are below max latency (diff) | |
download | linux-57ab3b08725163bfe385aaeea6837f9b1213af3d.tar.xz linux-57ab3b08725163bfe385aaeea6837f9b1213af3d.zip |
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/utils/cpupower-info.c')
-rw-r--r-- | tools/power/cpupower/utils/cpupower-info.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/power/cpupower/utils/cpupower-info.c b/tools/power/cpupower/utils/cpupower-info.c index 136d979e9586..10299f2e9d2a 100644 --- a/tools/power/cpupower/utils/cpupower-info.c +++ b/tools/power/cpupower/utils/cpupower-info.c @@ -17,8 +17,8 @@ #include "helpers/sysfs.h" static struct option set_opts[] = { - { .name = "perf-bias", .has_arg = optional_argument, .flag = NULL, .val = 'b'}, - { }, + {"perf-bias", optional_argument, NULL, 'b'}, + { }, }; static void print_wrong_arg_exit(void) |