nios2/time: Migrate to new 'set-state' interface
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 18 Aug 2015 05:59:28 +0000 (13:59 +0800)
committerLey Foon Tan <lftan@opensource.altera.com>
Mon, 7 Sep 2015 17:30:30 +0000 (01:30 +0800)
commit549a14c14b2f1868b81e5417a33b6d79e6da1d00
tree7487404c82bc168b7c09d1868219802cd5085a7a
parent64291f7db5bd8150a74ad2036f1037e6a0428df2
nios2/time: Migrate to new 'set-state' interface

Migrate nios2 driver to the new 'set-state' interface provided by clockevents core, the earlier 'set-mode' interface is marked obsolete now.

This also enables us to implement callbacks for new states of clockevent devices, for example: ONESHOT_STOPPED.

Cc: Ley Foon Tan <lftan@altera.com>
Cc: Tobias Klauser <tklauser@distanz.ch>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Dmitry Torokhov <dtor@chromium.org>
Cc: nios2-dev@lists.rocketboards.org
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Ley Foon Tan <lftan@altera.com>
arch/nios2/kernel/time.c