tools/power/x86/intel-speed-select: Add int argument to command functions
authorPrarit Bhargava <prarit@redhat.com>
Thu, 10 Oct 2019 20:29:40 +0000 (13:29 -0700)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 15 Oct 2019 08:02:29 +0000 (11:02 +0300)
commitce1326a2f9f7bf8920bc7f07e7b13ce8737b4681
treebf8ba55cab64735b6211af3d35deff6b22e18ad9
parent4e26fabfe15ca67125f1b6984671c2e9048d64a5
tools/power/x86/intel-speed-select: Add int argument to command functions

The current code structure has similar but separate command functions for
the enable and disable operations.  This can be improved by adding an int
argument to the command function structure, and interpreting 1 as enable
and 0 as disable.  This change results in the removal of the disable
command functions.

Add int argument to the command function structure.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
tools/power/x86/intel-speed-select/isst-config.c