mmc: cqhci: introduce get_trans_desc_offset()
authorYue Hu <huyue2@yulong.com>
Fri, 21 May 2021 03:44:32 +0000 (11:44 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 14 Jun 2021 11:57:40 +0000 (13:57 +0200)
commit83c49302566ea7328e6962fb81ceada2c93486b9
treefd60c437fefbb81053dfb97abdd00d8bce28e0f5
parent47d23c95fe0518b6e4cf7d7f6829987f377bd0d3
mmc: cqhci: introduce get_trans_desc_offset()

The same calculation to get transfer descriptor offset is already used
at 3 different locations. Let's create a new helper to simplify code.

Signed-off-by: Yue Hu <huyue2@yulong.com>
Link: https://lore.kernel.org/r/20210521034432.2321-1-zbestahu@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/cqhci-core.c