accel: changed motion sense host command to be more permissive with data args
accel: changed motion sense host command to be more permissive with data args

Changed the ec_rate sub-command of the motion sense command. Now it
permits any value for the rate as an argument and then bounds that
to within the min and max. This matches the behavior of the other
sub-commands such that for any argument the command will return
success, but if the arg is not valid, it finds the closest valid value.

BUG=none
BRANCH=rambi
TEST=Tested on a glimmer by using the ectool motionsense command. Made
sure if you give it a value outside of the range [5, 1000], then it
simply bounds it to the closest value in that range:
> ectool motionsense ec_rate 0
5
> ectool motionsense ec_rate 100
100
> ectool motionsense ec_rate 1100
1000

Change-Id: If71299e3ab27bcfac87103c672793ac61f88100e
Signed-off-by: Alec Berg <1a4429eeda29095a12e19a73405f80f5b7f37a63@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/192525
Reviewed-by: Randall Spangler <62698fdbb84d1779579ee80c3f39fac22017e5bc@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/193308

longsleep/ec,mtk09422/chromiumos-platform-ec,md5555/ec,fourier49/BZ_DEV_EC,gelraen/cros-ec,longsleep/ec,coreboot/chrome-ec,thehobn/ec,coreboot/chrome-ec,fourier49/BIZ_EC,eatbyte/chromium-ec,akappy7/ChromeOS_EC_LED_Diagnostics,md5555/ec,thehobn/ec,eatbyte/chromium-ec,alterapraxisptyltd/chromium-ec,akappy7/ChromeOS_EC_LED_Diagnostics,md5555/ec,gelraen/cros-ec,eatbyte/chromium-ec,coreboot/chrome-ec,gelraen/cros-ec,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,mtk09422/chromiumos-platform-ec,fourier49/BZ_DEV_EC,coreboot/chrome-ec,thehobn/ec,longsleep/ec,alterapraxisptyltd/chromium-ec,alterapraxisptyltd/chromium-ec,fourier49/BIZ_EC,akappy7/ChromeOS_EC_LED_Diagnostics,md5555/ec,alterapraxisptyltd/chromium-ec,akappy7/ChromeOS_EC_LED_Diagnostics,fourier49/BIZ_EC,mtk09422/chromiumos-platform-ec,mtk09422/chromiumos-platform-ec,thehobn/ec,coreboot/chrome-ec,eatbyte/chromium-ec,longsleep/ec,fourier49/BZ_DEV_EC,gelraen/cros-ec,fourier49/BZ_DEV_EC,fourier49/BIZ_EC