aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_crtc.h
diff options
context:
space:
mode:
authorAjay Kumar <ajaykumar.rs@samsung.com>2015-01-20 11:38:43 -0500
committerThierry Reding <treding@nvidia.com>2015-01-28 02:45:40 -0500
commitb07b90fd178a4797b0454ead491b717b41046bee (patch)
tree910390d54786443561d9e45bfdb8ef154f246001 /include/drm/drm_crtc.h
parent94d50d57c4403aac70d23d2f442ab9ef4a668791 (diff)
drm/bridge: do not pass drm_bridge_funcs to drm_bridge_init
Assign the pointer to bridge ops structure(drm_bridge_funcs) in the bridge driver itself, instead of passing it to drm_bridge_init. This will allow bridge driver developer to pack bridge private information inside the bridge object and pass only the drm-relevant information to drm_bridge_init. Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com> Acked-by: Inki Dae <inki.dae@samsung.com> Tested-by: Rahul Sharma <rahul.sharma@samsung.com> Tested-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk> Tested-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> Tested-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r--include/drm/drm_crtc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 02614170c034..15bb762fb316 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -1222,8 +1222,7 @@ extern unsigned int drm_connector_index(struct drm_connector *connector);
1222/* helper to unplug all connectors from sysfs for device */ 1222/* helper to unplug all connectors from sysfs for device */
1223extern void drm_connector_unplug_all(struct drm_device *dev); 1223extern void drm_connector_unplug_all(struct drm_device *dev);
1224 1224
1225extern int drm_bridge_init(struct drm_device *dev, struct drm_bridge *bridge, 1225extern int drm_bridge_init(struct drm_device *dev, struct drm_bridge *bridge);
1226 const struct drm_bridge_funcs *funcs);
1227extern void drm_bridge_cleanup(struct drm_bridge *bridge); 1226extern void drm_bridge_cleanup(struct drm_bridge *bridge);
1228 1227
1229extern int drm_encoder_init(struct drm_device *dev, 1228extern int drm_encoder_init(struct drm_device *dev,