diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2013-08-07 22:34:48 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-08-18 20:40:31 -0400 |
commit | b21e3afe2357c0f49348a5fb61247012bf8262ec (patch) | |
tree | 1d1e06b848236bb3b0f766d0b401eecbaee80b1c /include/drm | |
parent | ddcd09d62bd503bfd33291348b7cd8ad32d413fd (diff) |
drm: use ida to allocate connector ids
This makes it so that reloading a module does not cause all the
connector ids to change, which are user-visible and sometimes used
for configuration.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_crtc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 32e0820357e6..45f133228553 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -869,6 +869,8 @@ extern int drm_crtc_init(struct drm_device *dev, | |||
869 | const struct drm_crtc_funcs *funcs); | 869 | const struct drm_crtc_funcs *funcs); |
870 | extern void drm_crtc_cleanup(struct drm_crtc *crtc); | 870 | extern void drm_crtc_cleanup(struct drm_crtc *crtc); |
871 | 871 | ||
872 | extern void drm_connector_ida_init(void); | ||
873 | extern void drm_connector_ida_destroy(void); | ||
872 | extern int drm_connector_init(struct drm_device *dev, | 874 | extern int drm_connector_init(struct drm_device *dev, |
873 | struct drm_connector *connector, | 875 | struct drm_connector *connector, |
874 | const struct drm_connector_funcs *funcs, | 876 | const struct drm_connector_funcs *funcs, |