mmc: bcm2835: Drop pointer to mmc_host from bcm2835_host
authorLukas Wunner <lukas@wunner.de>
Sun, 3 Feb 2019 08:27:00 +0000 (09:27 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Feb 2019 07:40:58 +0000 (08:40 +0100)
commitc58ccf2b6de7d52994f9bb93227dfabf8077de24
treedde415f6e1e29f1d00045b9877506d0fb4d3af4d
parente5c1e63c932379b89d7404d4e5fde1bf8abff951
mmc: bcm2835: Drop pointer to mmc_host from bcm2835_host

The BCM2835 MMC host driver uses a pointer to get from the private
bcm2835_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: Lukas Wunner <lukas@wunner.de>
Cc: Frank Pavlic <f.pavlic@kunbus.de>
Cc: Alexander Graf <agraf@suse.de>
Reviewed-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/bcm2835.c
include/linux/mmc/host.h