diff options
author | Amey Narkhede <ameynarkhede03@gmail.com> | 2020-09-17 22:26:25 +0300 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2020-09-24 15:28:40 +0300 |
commit | 0caf60c4b110b5aea9a0700be277421c1f575041 (patch) | |
tree | 049ed992b4da2e9b01bdcec037e303528a0cfe12 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7931b2d56ea4f95ed54d578b483f7c0a28c84a70 (diff) | |
download | linux-0caf60c4b110b5aea9a0700be277421c1f575041.tar.xz |
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 <ameynarkhede03@gmail.com>
Link: https://lore.kernel.org/r/20200917192624.548720-1-ameynarkhede03@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions