]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7a952033d81dcff73c137465f125ff9d65acdc42
treee6504c03f247e742a460b511b712e0246190c650
parent09344a05f00315b2b02d94a60718b7654daae738
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