clocksource: sh_cmt: Introduce per-register functions
authorMagnus Damm <damm@opensource.se>
Fri, 14 Dec 2012 05:54:00 +0000 (14:54 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 12 Mar 2013 17:24:36 +0000 (02:24 +0900)
commit1b56b96b663d135305c3c47755fbdde3dc0ef720
treed5a7dfdb3f4bdf8f284065509dab3510834d6a48
parent44a10f943f59339f1206d599d4269a35995e397e
clocksource: sh_cmt: Introduce per-register functions

Introduce sh_cmt_read_cmstr/cmcsr/cmcnt() and
sh_cmt_write_cmstr/cmcsr/cmcnt/cmcor() to in the
future allow us to split counter registers from
control registers and reduce code complexity by
removing sh_cmt_read() and sh_cmt_write().

Signed-off-by: Magnus Damm <damm@opensource.se>
Acked-by: John Stultz <john.stultz@linaro.org>
Tested-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/clocksource/sh_cmt.c