summaryrefslogtreecommitdiff
path: root/include/drm/intel_lpe_audio.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-01-30 19:56:39 +0300
committerTakashi Iwai <tiwai@suse.de>2017-02-01 18:22:28 +0300
commitb1c01f4df20a6376fe6245644225ff9fe97c5f95 (patch)
tree9027684bae652a12b79c3ac893d3ba4e59a500cb /include/drm/intel_lpe_audio.h
parent0843e043cf2e5d12a4041efd9c794a213a3ef93b (diff)
downloadlinux-b1c01f4df20a6376fe6245644225ff9fe97c5f95.tar.xz
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/intel_lpe_audio.h')
-rw-r--r--include/drm/intel_lpe_audio.h4
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;
};