drm/i915: Remove the unused pending_notify from LPE platform data
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 27 Apr 2017 16:02:23 +0000 (19:02 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 3 May 2017 13:19:39 +0000 (16:19 +0300)
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 <tiwai@suse.de>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170427160231.13337-5-ville.syrjala@linux.intel.com
Reviewed-by: Takashi Iwai <tiwai@suse.de>
drivers/gpu/drm/i915/intel_lpe_audio.c
include/drm/intel_lpe_audio.h
sound/x86/intel_hdmi_audio.c

index 292fedf30b0010c33e1eefd8f643b1b87bd38edd..79b9dca985ff67c9fd7d25181a0f481e00259d83 100644 (file)
@@ -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);
index e9892b4c3af10c103cbe27f9ee17d1e31c0ba5ac..c201d39cdfea914c8d72fb3f2cd2a78f141b9df7 100644 (file)
@@ -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;
index 5b89662493c9571c046cd1b2c881c733d441b921..cbba4a78afb5660fbebcd4b32aefa92d7671302b 100644 (file)
@@ -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);