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)
commitc081e7fdbf310c25d9e90ef161e905c2ef0a9dc1
treea04f3465144bdf3808ce8114db74b273c6cb05b5
parent26c2b19e9daf8e68a9703dfec3bd6fed7330c158
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