clocksource/drivers/moxart: Use struct to hold state
authorJoel Stanley <joel@jms.id.au>
Thu, 21 Jul 2016 13:43:52 +0000 (23:13 +0930)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 9 Sep 2016 12:15:36 +0000 (14:15 +0200)
commit82fdd070873f7ac9b3e37b3d4523b4ae27d02e50
treee6504c03f247e742a460b511b712e0246190c650
parent70164742783c371516199271d923731afc40e25e
clocksource/drivers/moxart: Use struct to hold state

Add a struct moxart_timer to hold the driver state, including the
irqaction and struct clock_event_device.

Most importantly this holds values for enabling and disabling the timer,
so future support can be added for devices that use different bits for
enable/disable.

In preparation for future hardware support we add a MOXART prefix to the
existing values.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/moxart_timer.c