File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,6 +75,24 @@ int drm_panel_detach(struct drm_panel *panel)
7575}
7676EXPORT_SYMBOL (drm_panel_detach );
7777
78+ struct drm_panel * drm_find_panel_by_connector (struct drm_connector * connector )
79+ {
80+ struct drm_panel * panel ;
81+
82+ mutex_lock (& panel_lock );
83+
84+ list_for_each_entry (panel , & panel_list , list ) {
85+ if (panel -> connector == connector ) {
86+ mutex_unlock (& panel_lock );
87+ return panel ;
88+ }
89+ }
90+
91+ mutex_unlock (& panel_lock );
92+ return NULL ;
93+ }
94+ EXPORT_SYMBOL (drm_find_panel_by_connector );
95+
7896#ifdef CONFIG_OF
7997struct drm_panel * of_drm_find_panel (struct device_node * np )
8098{
Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ void drm_panel_remove(struct drm_panel *panel);
143143int drm_panel_attach (struct drm_panel * panel , struct drm_connector * connector );
144144int drm_panel_detach (struct drm_panel * panel );
145145
146+ struct drm_panel * drm_find_panel_by_connector (struct drm_connector * connector );
146147#ifdef CONFIG_OF
147148struct drm_panel * of_drm_find_panel (struct device_node * np );
148149#else
You can’t perform that action at this time.
0 commit comments