Skip to content

Commit

Permalink
drm/i915: Remove the unused pending_notify from LPE platform data
Browse files Browse the repository at this point in the history
The pending_notify flag in the LPE audio platform data is pointless,
actually unused. So let's kill it off.

v2: Fix typo in patch subject

Cc: Takashi Iwai <[email protected]>
Cc: Pierre-Louis Bossart <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Takashi Iwai <[email protected]>
  • Loading branch information
vsyrjala committed May 3, 2017
1 parent ebf5f92 commit d220559
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions drivers/gpu/drm/i915/intel_lpe_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,6 @@ void intel_lpe_audio_notify(struct drm_i915_private *dev_priv,

if (pdata->notify_audio_lpe)
pdata->notify_audio_lpe(dev_priv->lpe_audio.platdev);
else
pdata->notify_pending = true;

spin_unlock_irqrestore(&pdata->lpe_audio_slock,
irq_flags);
Expand Down
1 change: 0 additions & 1 deletion include/drm/intel_lpe_audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ struct intel_hdmi_lpe_audio_eld {
};

struct intel_hdmi_lpe_audio_pdata {
bool notify_pending;
int tmds_clock_speed;
bool hdmi_connected;
bool dp_output;
Expand Down
1 change: 0 additions & 1 deletion sound/x86/intel_hdmi_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1811,7 +1811,6 @@ static int hdmi_lpe_audio_probe(struct platform_device *pdev)

spin_lock_irq(&pdata->lpe_audio_slock);
pdata->notify_audio_lpe = notify_audio_lpe;
pdata->notify_pending = false;
spin_unlock_irq(&pdata->lpe_audio_slock);

pm_runtime_use_autosuspend(&pdev->dev);
Expand Down

0 comments on commit d220559

Please sign in to comment.