aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i2c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-03-13 19:42:34 -0400
committerDave Airlie <airlied@redhat.com>2016-03-13 19:46:02 -0400
commit9b61c0fcdf0cfd20a85d9856d46142e7f297de0a (patch)
treed4abe6aa3f4e1e088f9da1d0597e078b1fe58912 /drivers/gpu/drm/i2c
parent550e3b23a53c88adfa46e64f9d442743e65d47da (diff)
parent125234dc8b1cc862f52d8bd5b37c36cc59b2cb86 (diff)
Merge drm-fixes into drm-next.
Nouveau wanted this to avoid some worse conflicts when I merge that.
Diffstat (limited to 'drivers/gpu/drm/i2c')
-rw-r--r--drivers/gpu/drm/i2c/tda998x_drv.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c
index b61282d89aa3..f4315bc8d471 100644
--- a/drivers/gpu/drm/i2c/tda998x_drv.c
+++ b/drivers/gpu/drm/i2c/tda998x_drv.c
@@ -1373,8 +1373,16 @@ static void tda998x_connector_destroy(struct drm_connector *connector)
1373 drm_connector_cleanup(connector); 1373 drm_connector_cleanup(connector);
1374} 1374}
1375 1375
1376static int tda998x_connector_dpms(struct drm_connector *connector, int mode)
1377{
1378 if (drm_core_check_feature(connector->dev, DRIVER_ATOMIC))
1379 return drm_atomic_helper_connector_dpms(connector, mode);
1380 else
1381 return drm_helper_connector_dpms(connector, mode);
1382}
1383
1376static const struct drm_connector_funcs tda998x_connector_funcs = { 1384static const struct drm_connector_funcs tda998x_connector_funcs = {
1377 .dpms = drm_atomic_helper_connector_dpms, 1385 .dpms = tda998x_connector_dpms,
1378 .reset = drm_atomic_helper_connector_reset, 1386 .reset = drm_atomic_helper_connector_reset,
1379 .fill_modes = drm_helper_probe_single_connector_modes, 1387 .fill_modes = drm_helper_probe_single_connector_modes,
1380 .detect = tda998x_connector_detect, 1388 .detect = tda998x_connector_detect,