mmc: tmio: Share register access functions
authorSimon Horman <horms@verge.net.au>
Mon, 20 Jun 2011 23:00:09 +0000 (08:00 +0900)
committerChris Ball <cjb@laptop.org>
Wed, 20 Jul 2011 21:20:56 +0000 (17:20 -0400)
commita11862d3389d4304211eed0758f510d5e573f93c
treea50e43af3245844bd65d6d17f04167054364ac7e
parent95c7348d948dc4832434ddfaeba804ac14732f02
mmc: tmio: Share register access functions

Move register access functions into a shared header.
Use sd_ctrl_write16 in tmio_mmc_dma.c:tmio_mmc_enable_dma().

Other than avoiding (trivial) open-coding, the motivation for
this is to allow platform-hooks in access functions to
be applied across all applicable accesses.

Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/tmio_mmc.h
drivers/mmc/host/tmio_mmc_dma.c
drivers/mmc/host/tmio_mmc_pio.c