diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-10-18 10:11:28 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-10-23 09:21:07 -0400 |
commit | b8206d3916c15a2939b85f21673bdf39e4c8d023 (patch) | |
tree | 28fdc65646c33e46460a8d593df1becda994b512 /drivers/gpu/drm/drm_crtc_helper.c | |
parent | 74afee7dd93458ab343d166c745746c6dca993fe (diff) |
drm: return if changed in drm_helper_hpd_irq_event()
The caller may want to know whether the configuration was changed, and
if an hotplug event was sent.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_crtc_helper.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index 5fcb9d487672..55ea4ac6fd50 100644 --- a/drivers/gpu/drm/drm_crtc_helper.c +++ b/drivers/gpu/drm/drm_crtc_helper.c | |||
@@ -1131,14 +1131,14 @@ void drm_kms_helper_poll_fini(struct drm_device *dev) | |||
1131 | } | 1131 | } |
1132 | EXPORT_SYMBOL(drm_kms_helper_poll_fini); | 1132 | EXPORT_SYMBOL(drm_kms_helper_poll_fini); |
1133 | 1133 | ||
1134 | void drm_helper_hpd_irq_event(struct drm_device *dev) | 1134 | bool drm_helper_hpd_irq_event(struct drm_device *dev) |
1135 | { | 1135 | { |
1136 | struct drm_connector *connector; | 1136 | struct drm_connector *connector; |
1137 | enum drm_connector_status old_status; | 1137 | enum drm_connector_status old_status; |
1138 | bool changed = false; | 1138 | bool changed = false; |
1139 | 1139 | ||
1140 | if (!dev->mode_config.poll_enabled) | 1140 | if (!dev->mode_config.poll_enabled) |
1141 | return; | 1141 | return false; |
1142 | 1142 | ||
1143 | mutex_lock(&dev->mode_config.mutex); | 1143 | mutex_lock(&dev->mode_config.mutex); |
1144 | list_for_each_entry(connector, &dev->mode_config.connector_list, head) { | 1144 | list_for_each_entry(connector, &dev->mode_config.connector_list, head) { |
@@ -1163,5 +1163,7 @@ void drm_helper_hpd_irq_event(struct drm_device *dev) | |||
1163 | 1163 | ||
1164 | if (changed) | 1164 | if (changed) |
1165 | drm_kms_helper_hotplug_event(dev); | 1165 | drm_kms_helper_hotplug_event(dev); |
1166 | |||
1167 | return changed; | ||
1166 | } | 1168 | } |
1167 | EXPORT_SYMBOL(drm_helper_hpd_irq_event); | 1169 | EXPORT_SYMBOL(drm_helper_hpd_irq_event); |