clockevents/drivers/asm9260: Migrate to new 'set-state' interface
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 30 Jun 2015 09:00:48 +0000 (14:30 +0530)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 10 Aug 2015 09:40:25 +0000 (11:40 +0200)
commit3465f60917f2dbbc227e2a2e7913ad75bb604c12
tree40407a43feb5b8dfc227184061d2b616740ba226
parent0fae62eafec3c033d49160344228a4fa7d6303bc
clockevents/drivers/asm9260: Migrate to new 'set-state' interface

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

As a default the timer was stopped when entering in the set_mode(RESUME)
function, now this is done explicitly with the new API.

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

Cc: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/asm9260_timer.c