aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/dss/omapdss.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-05-30 11:51:59 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2018-09-03 09:13:29 -0400
commita21a8f3c93e1a95cc811a1297ec60aa455a6c523 (patch)
treea2eef3bd226fb2a6f84d147b1cca409d379bb630 /drivers/gpu/drm/omapdrm/dss/omapdss.h
parent949ea2ef3fed4e1d0f9b80ec21ed81a9833ac248 (diff)
drm/omap: Remove unneeded safety checks in the HPD operations
The HPD-related omap_dss_device operations are now only called when the device supports HPD. There's no need to duplicate that check in the omap_dss_device drivers. The .register_hpd_cb() operation can as a result be turned into a void operation. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/omapdss.h')
-rw-r--r--drivers/gpu/drm/omapdrm/dss/omapdss.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/omapdss.h b/drivers/gpu/drm/omapdrm/dss/omapdss.h
index 30ad9985776f..b05d47b34937 100644
--- a/drivers/gpu/drm/omapdrm/dss/omapdss.h
+++ b/drivers/gpu/drm/omapdrm/dss/omapdss.h
@@ -372,10 +372,10 @@ struct omap_dss_device_ops {
372 372
373 bool (*detect)(struct omap_dss_device *dssdev); 373 bool (*detect)(struct omap_dss_device *dssdev);
374 374
375 int (*register_hpd_cb)(struct omap_dss_device *dssdev, 375 void (*register_hpd_cb)(struct omap_dss_device *dssdev,
376 void (*cb)(void *cb_data, 376 void (*cb)(void *cb_data,
377 enum drm_connector_status status), 377 enum drm_connector_status status),
378 void *cb_data); 378 void *cb_data);
379 void (*unregister_hpd_cb)(struct omap_dss_device *dssdev); 379 void (*unregister_hpd_cb)(struct omap_dss_device *dssdev);
380 void (*enable_hpd)(struct omap_dss_device *dssdev); 380 void (*enable_hpd)(struct omap_dss_device *dssdev);
381 void (*disable_hpd)(struct omap_dss_device *dssdev); 381 void (*disable_hpd)(struct omap_dss_device *dssdev);