Re: [PATCH v3 4/5] clocksource/drivers/timer-mediatek: Convert the driver to timer-of

2018-06-28 Thread Stanley Chu
On Thu, 2018-06-28 at 16:03 +0200, Daniel Lezcano wrote: > > > > -struct mtk_clock_event_device { > > - void __iomem *gpt_base; > > - u32 ticks_per_jiffy; > > - struct clock_event_device dev; > > +struct mtk_timer_private { > > + unsigned long ticks_per_jiffy; > > }; > > This private

Re: [PATCH v3 4/5] clocksource/drivers/timer-mediatek: Convert the driver to timer-of

2018-06-28 Thread Stanley Chu
On Thu, 2018-06-28 at 16:03 +0200, Daniel Lezcano wrote: > > > > -struct mtk_clock_event_device { > > - void __iomem *gpt_base; > > - u32 ticks_per_jiffy; > > - struct clock_event_device dev; > > +struct mtk_timer_private { > > + unsigned long ticks_per_jiffy; > > }; > > This private

Re: [PATCH v3 4/5] clocksource/drivers/timer-mediatek: Convert the driver to timer-of

2018-06-28 Thread Daniel Lezcano
On 28/06/2018 12:45, Stanley Chu wrote: > Convert the driver to use the timer_of helpers. > This allows to remove custom proprietary structure, > factors out and simplifies the code. > > Signed-off-by: Stanley Chu > --- > drivers/clocksource/timer-mediatek.c | 222 >

Re: [PATCH v3 4/5] clocksource/drivers/timer-mediatek: Convert the driver to timer-of

2018-06-28 Thread Daniel Lezcano
On 28/06/2018 12:45, Stanley Chu wrote: > Convert the driver to use the timer_of helpers. > This allows to remove custom proprietary structure, > factors out and simplifies the code. > > Signed-off-by: Stanley Chu > --- > drivers/clocksource/timer-mediatek.c | 222 >

[PATCH v3 4/5] clocksource/drivers/timer-mediatek: Convert the driver to timer-of

2018-06-28 Thread Stanley Chu
Convert the driver to use the timer_of helpers. This allows to remove custom proprietary structure, factors out and simplifies the code. Signed-off-by: Stanley Chu --- drivers/clocksource/timer-mediatek.c | 222 -- 1 file changed, 104 insertions(+), 118

[PATCH v3 4/5] clocksource/drivers/timer-mediatek: Convert the driver to timer-of

2018-06-28 Thread Stanley Chu
Convert the driver to use the timer_of helpers. This allows to remove custom proprietary structure, factors out and simplifies the code. Signed-off-by: Stanley Chu --- drivers/clocksource/timer-mediatek.c | 222 -- 1 file changed, 104 insertions(+), 118