]> git.baikalelectronics.ru Git - kernel.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>
Tue, 28 May 2013 02:04:22 +0000 (10:04 +0800)
commit420626ec986c2df558ba290c17a74c6851f46618
tree6c8fc95ce2004bdd0e0692110a09b4a023624893
parenta95b7e5ebb3c3319404e9006c229ac532203c56b
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