]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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, 24 May 2021 13:37:35 +0000 (15:37 +0200)
commitc4a0252bdb3523dc3dc25c70b97d6c82fca2b90b
tree2a445e534770b54b0e44e61806e77d21ddb13913
parentfef88f2ed0405fd5b6b19a0f510b556e023e858b
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