hw/sd.c: introduce wrapper for conversion address to wp group
commitb7202b8870ebb8e9b0246361c96e129172738f82
authorMitsyanko Igor <i.mitsyanko@samsung.com>
Mon, 13 Aug 2012 10:04:06 +0000 (13 11:04 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 13 Aug 2012 10:04:06 +0000 (13 11:04 +0100)
tree8e44a341401da2bebb3659e484906239061dce34
parent347cab1a762ff8542016f574c5eb32f0c4588ea2
hw/sd.c: introduce wrapper for conversion address to wp group

Add wrapper function sd_addr_to_wpnum() to replace long address-->wg_group
conversion line.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/sd.c