> 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 -EINVAL when sscanf does not > return 1. > > This is done for min_freq, max_freq and polling_interval > > Cc: MyungJoo Ham <myungjoo....@samsung.com> > Cc: Kyungmin Park <kyungmin.p...@samsung.com> > Cc: "Rafael J. Wysocki" <r...@sisk.pl> > Cc: Kevin Hilman <khil...@ti.com> > Cc: linux...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > > Signed-off-by: Nishanth Menon <n...@ti.com>
Acked-by: MyungJoo Ham <myungjoo....@samsung.com>