thermal: rcar: add read/write functions for common/priv data
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 31 Jan 2013 09:03:46 +0000 (09:03 +0000)
committerZhang Rui <rui.zhang@intel.com>
Wed, 6 Feb 2013 06:13:58 +0000 (14:13 +0800)
commite9137a582fcbe36d9dedb8d7f6902a059154b14e
tree51a0666340c10e2f3a3fc8cba6fc08a2bd8f22cb
parent3676d1dd3d3069ca70b8075c0e86482cbaa01c2f
thermal: rcar: add read/write functions for common/priv data

R-Car thermal driver will use struct common in next
feature (interrupt support).
But the register address is different between struct priv and common.
This patch adds read/write functions for struct common,
and use macro technique to avoid wrong register access.

This is preparation patch for next feature (interrupt support),
therefore, there is no user to use this common read/write
function at this point.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/rcar_thermal.c