PM / devfreq: fix sscanf handling for writable sysfs entries
MyungJoo Ham
Acked-byQuoted 11 lines
sscanf returns 0 when an invalid parameter like:
echo -n "a">min_freq
is attempted. Returning back the return result(0) will cause the command not to return back to command prompt.Instead, just return
-EINVALwhen sscanf does not return 1.This is done for
min_freq,max_freqandpolling_interval
Quoted 8 lines
Cc MyungJoo Ham <[email protected]>Cc Kyungmin Park <[email protected]>Cc "Rafael J. Wysocki" <[email protected]>Cc Kevin Hilman <[email protected]>Signed-off-by Nishanth Menon <[email protected]>
Acked-by MyungJoo Ham <[email protected]>
�淸�{.n�+돴윯돪�+%듚�깁負쪐w��{.n�+돴쪐{깸G쳺��{ay����,j�f"톒쉹��묎�z_溫(�쉸듶줷"얎�m����G쳺�◀?솳鈺�&x�~뤳턨O뺞촾퇉v�^�m����띠�◀?뻀�