]> git.karo-electronics.de Git - karo-tx-linux.git/commit
thermal: cut the spaces when user sets policy
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 17 May 2013 11:52:02 +0000 (11:52 +0000)
committerZhang Rui <rui.zhang@intel.com>
Mon, 20 May 2013 15:06:53 +0000 (23:06 +0800)
commitd47ae290bddb60f4ce5a6d7f3f9c3cecd181b53e
treebdb752a07492184db51f54357e3a5cc628dc3bd9
parent9d475508ee61ac9120db1822b98a5d489e6e0c43
thermal: cut the spaces when user sets policy

Setting policy results in invalid value error.
% echo "step_wise" > policy
% echo: write error: Invalid argument

Need clean up of the buffer which "echo" may add based on the arguments, before
comparing aganist list of governor names.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reported-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Acked-by: Eduardo Valentin <eduardo.valentin@ti.com>
Tested-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/thermal_core.c