diff options
| author | Maxime Ripard <[email protected]> | 2020-09-03 10:01:19 +0200 |
|---|---|---|
| committer | Maxime Ripard <[email protected]> | 2020-09-07 18:05:33 +0200 |
| commit | 47c167b757638e747717ab7e5d7e8803c446d943 (patch) | |
| tree | 59913406a0fd1ae4ac2e68c02fa978a97113b4dc /tools/perf/scripts/python | |
| parent | 66bf1c30e0e5bcc9d6965157a8581f36577c45a4 (diff) | |
drm/vc4: hdmi: Retrieve the vc4_hdmi at unbind using our device
The unbind function needs to retrieve a vc4_hdmi structure pointer through
the struct device that we're given since we want to support multiple HDMI
controllers.
However, our optional ASoC support doesn't make that trivial since it will
overwrite the device drvdata if we use it, but obviously won't if we don't
use it.
Let's make sure the fields are at the proper offset to be able to cast
between the snd_soc_card structure and the vc4_hdmi structure
transparently so we can support both cases.
Signed-off-by: Maxime Ripard <[email protected]>
Tested-by: Chanwoo Choi <[email protected]>
Tested-by: Hoegeun Kwon <[email protected]>
Tested-by: Stefan Wahren <[email protected]>
Reviewed-by: Dave Stevenson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/717082cba06b5c06280f26c56c08aee512365ed3.1599120059.git-series.maxime@cerno.tech
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions