diff options
| author | Jonas Karlman <[email protected]> | 2023-04-18 16:46:26 +0000 |
|---|---|---|
| committer | Kever Yang <[email protected]> | 2023-04-21 15:16:01 +0800 |
| commit | b8c394b7268d5a8f927b30296ffe9cb4d71b06fc (patch) | |
| tree | 4ea48def88ef0d952edbc10ad824d0aa480198dd /include/linux | |
| parent | c1425ed8f873a1739874639bc120aab89a443539 (diff) | |
mmc: rockchip_sdhci: Fix use of device private data
The device private data is misused in rockchip_sdhci_of_to_plat and
rockchip_sdhci_execute_tuning.
In these functions dev_get_priv is assigned to struct sdhci_host:
struct sdhci_host *host = dev_get_priv(dev);
Instead, the sdhci host should refer to host in struct rockchip_sdhc:
struct rockchip_sdhc *priv = dev_get_priv(dev);
struct sdhci_host *host = &priv->host;
Because host is the first member in struct rockchip_sdhc this is not a
real problem, lets fix it anyway and also use priv name consistently.
Signed-off-by: Jonas Karlman <[email protected]>
Reviewed-by: Kever Yang <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
