]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: alcor: Drop pointer to mmc_host from alcor_sdmmc_host
authorKamlesh Gurudasani <kamlesh.gurudasani@gmail.com>
Thu, 2 May 2019 05:58:16 +0000 (11:28 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 6 May 2019 10:33:03 +0000 (12:33 +0200)
commit76fdfad1350c14a3758f11fa3daa54b41fa38067
treea04f3465144bdf3808ce8114db74b273c6cb05b5
parent8dee0921357cb62a1237bac31f19ab0edfc47aa4
mmc: alcor: Drop pointer to mmc_host from alcor_sdmmc_host

The driver for Alcor Micro AU6601 and AU6621 controllers uses a pointer to
get from the private alcor_sdmmc_host structure to the generic mmc_host
structure. However the latter is always immediately preceding the former in
memory, so compute its address with a subtraction (which is cheaper than a
dereference) and drop the superfluous pointer.

No functional change intended.

Signed-off-by: Kamlesh Gurudasani <kamlesh.gurudasani@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/alcor.c