drivers: counter: Modify set top value api.
drivers: counter: Modify set top value api.

patch modifies the set top value api to return error only
when ticks passed from application is not equal top value
supported by hardware.

Signed-off-by: Savinay Dharmappa <b9bdbfc60b49ae384b99e3313b3f20d055baeacb@intel.com>

nashif/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,ldts/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,ldts/zephyr,nashif/zephyr,ldts/zephyr,Vudentz/zephyr,GiulianoFranchetto/zephyr,GiulianoFranchetto/zephyr,finikorg/zephyr,GiulianoFranchetto/zephyr,GiulianoFranchetto/zephyr,galak/zephyr,finikorg/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,finikorg/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,finikorg/zephyr,GiulianoFranchetto/zephyr,nashif/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,Vudentz/zephyr,nashif/zephyr,nashif/zephyr,galak/zephyr