From: Andy Shevchenko Date: Fri, 17 May 2013 11:52:02 +0000 (+0000) Subject: thermal: cut the spaces when user sets policy X-Git-Tag: v3.11-rc1~27^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42a5bf507d7f7ecbf606eb392dd9d2e4d009c36b;p=pandora-kernel.git 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 Reported-by: Srinivas Pandruvada Acked-by: Eduardo Valentin Tested-by: Eduardo Valentin Signed-off-by: Zhang Rui --- Reading git-diff-tree failed