OSDN Git Service

mmc: renesas_sdhi: remove accessor function for internal_dmac
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 6 Oct 2022 19:04:47 +0000 (21:04 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 7 Dec 2022 12:22:36 +0000 (13:22 +0100)
commita8687078fc5e7606b3e91f32cb6ba2574d83736d
tree4ab4c5e91f2222b97450b60af355431cee6612bf
parentaae9d3a440736691b3c1cb09ae2c32c4f1ee2e67
mmc: renesas_sdhi: remove accessor function for internal_dmac

This accessor function does not help readability but makes it worse.
Because I soon need to read from the registers as well and don't want to
add another function like this, I chose to remove the existing one and
use the accessor directly. I also switch from writeq to writel because
no 64 bit register is actually involved.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Duy Nguyen <duy.nguyen.rh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20221006190452.5316-2-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_internal_dmac.c