mmc: android-goldfish: Drop pointer to mmc_host from goldfish_mmc_host
authorKamlesh Gurudasani <kamlesh.gurudasani@gmail.com>
Tue, 7 May 2019 19:52:29 +0000 (01:22 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Jun 2019 15:09:56 +0000 (17:09 +0200)
commitfdc4e755f6c516e526dd9396b6eb05712c44fb65
treeb5f7cf11387f3ced0278e73ae4a3a98a5da7dd59
parentd1fdb6d8f6a4109a4263176c84b899076a5f8008
mmc: android-goldfish: Drop pointer to mmc_host from goldfish_mmc_host

The driver for android-goldfish uses a pointer to get from the private
goldfish_mmc_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/android-goldfish.c