diff options
author | Amey Narkhede <[email protected]> | 2020-09-18 00:56:25 +0530 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2020-09-24 14:28:40 +0200 |
commit | 0caf60c4b110b5aea9a0700be277421c1f575041 (patch) | |
tree | 049ed992b4da2e9b01bdcec037e303528a0cfe12 /scripts/gdb/linux/modules.py | |
parent | 7931b2d56ea4f95ed54d578b483f7c0a28c84a70 (diff) |
mmc: mediatek: Drop pointer to mmc_host from msdc_host
The MediaTek MMC driver uses pointer to get from private
msdc_host structure to the generic mmc_host structure.
However mmc_host always precedes msdc_host in memory so compute
its address with a subtraction (which is cheaper than a dereference)
using mmc_from_priv() and drop the extra pointer.
Signed-off-by: Amey Narkhede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions