diff options
Diffstat (limited to 'drivers/gpu/drm/msm/hdmi/hdmi.h')
-rw-r--r-- | drivers/gpu/drm/msm/hdmi/hdmi.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.h b/drivers/gpu/drm/msm/hdmi/hdmi.h index b981995410b5..43e654f751b7 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi.h +++ b/drivers/gpu/drm/msm/hdmi/hdmi.h | |||
@@ -38,8 +38,6 @@ struct hdmi_audio { | |||
38 | }; | 38 | }; |
39 | 39 | ||
40 | struct hdmi { | 40 | struct hdmi { |
41 | struct kref refcount; | ||
42 | |||
43 | struct drm_device *dev; | 41 | struct drm_device *dev; |
44 | struct platform_device *pdev; | 42 | struct platform_device *pdev; |
45 | 43 | ||
@@ -97,13 +95,9 @@ struct hdmi_platform_config { | |||
97 | /* gpio's: */ | 95 | /* gpio's: */ |
98 | int ddc_clk_gpio, ddc_data_gpio, hpd_gpio, mux_en_gpio, mux_sel_gpio; | 96 | int ddc_clk_gpio, ddc_data_gpio, hpd_gpio, mux_en_gpio, mux_sel_gpio; |
99 | int mux_lpm_gpio; | 97 | int mux_lpm_gpio; |
100 | |||
101 | /* older devices had their own irq, mdp5+ it is shared w/ mdp: */ | ||
102 | bool shared_irq; | ||
103 | }; | 98 | }; |
104 | 99 | ||
105 | void hdmi_set_mode(struct hdmi *hdmi, bool power_on); | 100 | void hdmi_set_mode(struct hdmi *hdmi, bool power_on); |
106 | void hdmi_destroy(struct kref *kref); | ||
107 | 101 | ||
108 | static inline void hdmi_write(struct hdmi *hdmi, u32 reg, u32 data) | 102 | static inline void hdmi_write(struct hdmi *hdmi, u32 reg, u32 data) |
109 | { | 103 | { |
@@ -115,17 +109,6 @@ static inline u32 hdmi_read(struct hdmi *hdmi, u32 reg) | |||
115 | return msm_readl(hdmi->mmio + reg); | 109 | return msm_readl(hdmi->mmio + reg); |
116 | } | 110 | } |
117 | 111 | ||
118 | static inline struct hdmi * hdmi_reference(struct hdmi *hdmi) | ||
119 | { | ||
120 | kref_get(&hdmi->refcount); | ||
121 | return hdmi; | ||
122 | } | ||
123 | |||
124 | static inline void hdmi_unreference(struct hdmi *hdmi) | ||
125 | { | ||
126 | kref_put(&hdmi->refcount, hdmi_destroy); | ||
127 | } | ||
128 | |||
129 | /* | 112 | /* |
130 | * The phy appears to be different, for example between 8960 and 8x60, | 113 | * The phy appears to be different, for example between 8960 and 8x60, |
131 | * so split the phy related functions out and load the correct one at | 114 | * so split the phy related functions out and load the correct one at |