diff options
author | Ajay Kumar <ajaykumar.rs@samsung.com> | 2015-01-20 11:38:43 -0500 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-01-28 02:45:40 -0500 |
commit | b07b90fd178a4797b0454ead491b717b41046bee (patch) | |
tree | 910390d54786443561d9e45bfdb8ef154f246001 /include/drm/drm_crtc.h | |
parent | 94d50d57c4403aac70d23d2f442ab9ef4a668791 (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.h | 3 |
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 */ |
1223 | extern void drm_connector_unplug_all(struct drm_device *dev); | 1223 | extern void drm_connector_unplug_all(struct drm_device *dev); |
1224 | 1224 | ||
1225 | extern int drm_bridge_init(struct drm_device *dev, struct drm_bridge *bridge, | 1225 | extern int drm_bridge_init(struct drm_device *dev, struct drm_bridge *bridge); |
1226 | const struct drm_bridge_funcs *funcs); | ||
1227 | extern void drm_bridge_cleanup(struct drm_bridge *bridge); | 1226 | extern void drm_bridge_cleanup(struct drm_bridge *bridge); |
1228 | 1227 | ||
1229 | extern int drm_encoder_init(struct drm_device *dev, | 1228 | extern int drm_encoder_init(struct drm_device *dev, |