summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_fb_helper.h
diff options
context:
space:
mode:
authorDave Airlie2014-06-05 06:01:30 +0200
committerDave Airlie2014-07-08 03:39:45 +0200
commit65c2a89c30ed63db15fbbdba41b74e5f47278897 (patch)
tree94c1c859f46068da7a64f6175705b2081129a11d /include/drm/drm_fb_helper.h
parentdrm/crtc: add interface to reinitialise the legacy mode group (diff)
downloadkernel-qcow2-linux-65c2a89c30ed63db15fbbdba41b74e5f47278897.tar.gz
kernel-qcow2-linux-65c2a89c30ed63db15fbbdba41b74e5f47278897.tar.xz
kernel-qcow2-linux-65c2a89c30ed63db15fbbdba41b74e5f47278897.zip
drm/fb_helper: allow adding/removing connectors later
This is required to get fbcon probing to work on new connectors, callers should acquire the mode config lock before calling these. Reviewed-by: Todd Previte <tprevite@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_fb_helper.h')
-rw-r--r--include/drm/drm_fb_helper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drm_fb_helper.h b/include/drm/drm_fb_helper.h
index 1cf587f1f927..bfd329d613c4 100644
--- a/include/drm/drm_fb_helper.h
+++ b/include/drm/drm_fb_helper.h
@@ -86,6 +86,7 @@ struct drm_fb_helper {
int crtc_count;
struct drm_fb_helper_crtc *crtc_info;
int connector_count;
+ int connector_info_alloc_count;
struct drm_fb_helper_connector **connector_info;
const struct drm_fb_helper_funcs *funcs;
struct fb_info *fbdev;
@@ -130,4 +131,7 @@ struct drm_display_mode *
drm_pick_cmdline_mode(struct drm_fb_helper_connector *fb_helper_conn,
int width, int height);
+int drm_fb_helper_add_one_connector(struct drm_fb_helper *fb_helper, struct drm_connector *connector);
+int drm_fb_helper_remove_one_connector(struct drm_fb_helper *fb_helper,
+ struct drm_connector *connector);
#endif