diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-01-30 17:56:39 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-02-01 16:22:28 +0100 |
commit | b1c01f4df20a6376fe6245644225ff9fe97c5f95 (patch) | |
tree | 9027684bae652a12b79c3ac893d3ba4e59a500cb /include/drm | |
parent | 0843e043cf2e5d12a4041efd9c794a213a3ef93b (diff) | |
download | lwn-b1c01f4df20a6376fe6245644225ff9fe97c5f95.tar.gz lwn-b1c01f4df20a6376fe6245644225ff9fe97c5f95.zip |
drm/i915: Pass platform device to LPE audio notifier
This allows the LPE HDMI driver to clean up its global variable
reference.
Also drop to pass the eld pointer because the connection status and
the ELD bytes can be retrieved from the attached pdata.
Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/intel_lpe_audio.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/drm/intel_lpe_audio.h b/include/drm/intel_lpe_audio.h index 410128e4cd70..e9892b4c3af1 100644 --- a/include/drm/intel_lpe_audio.h +++ b/include/drm/intel_lpe_audio.h @@ -27,6 +27,8 @@ #include <linux/types.h> #include <linux/spinlock_types.h> +struct platform_device; + #define HDMI_MAX_ELD_BYTES 128 struct intel_hdmi_lpe_audio_eld { @@ -42,7 +44,7 @@ struct intel_hdmi_lpe_audio_pdata { bool dp_output; int link_rate; struct intel_hdmi_lpe_audio_eld eld; - void (*notify_audio_lpe)(void *audio_ptr); + void (*notify_audio_lpe)(struct platform_device *pdev); spinlock_t lpe_audio_slock; }; |