mmc: renesas_sdhi: use helpers to access struct scatterlist members
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 18 Apr 2018 18:20:58 +0000 (20:20 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 May 2018 13:08:45 +0000 (15:08 +0200)
commita028b435bf37fa091f701ee44e45cc152740fb8f
tree82aaadc14d2d46af993cf7412df2ca26a263003f
parentbb26b8412dec694a99f3b1b1dd1eed1f185f04f6
mmc: renesas_sdhi: use helpers to access struct scatterlist members

Instead of directly accessing the members of struct scatterlist use the
helpers mmc_get_dma_dir() and sg_dma_address() in
renesas_sdhi_internal_dmac_start_dma(). Based on previous work by
Masaharu Hayakawa.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
[rebased to mmc/next]
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_internal_dmac.c