Skip to content

Commit b2b2f7b

Browse files
committed
drm: renesas: shmobile: Atomic conversion part 3
Complete the conversion to atomic mode setting by converting the connector, and setting the DRIVER_ATOMIC flag. Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/042f9ff076c4b1c87235c74c8b76c9d161e126ec.1694767209.git.geert+renesas@glider.be
1 parent 7c2d79f commit b2b2f7b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,6 @@ static void shmob_drm_connector_destroy(struct drm_connector *connector)
501501
}
502502

503503
static const struct drm_connector_funcs connector_funcs = {
504-
.dpms = drm_helper_connector_dpms,
505504
.reset = drm_atomic_helper_connector_reset,
506505
.fill_modes = drm_helper_probe_single_connector_modes,
507506
.destroy = shmob_drm_connector_destroy,
@@ -581,9 +580,7 @@ int shmob_drm_connector_create(struct shmob_drm_device *sdev,
581580
if (ret < 0)
582581
goto error;
583582

584-
drm_helper_connector_dpms(connector, DRM_MODE_DPMS_OFF);
585-
drm_object_property_set_value(&connector->base,
586-
sdev->ddev.mode_config.dpms_property, DRM_MODE_DPMS_OFF);
583+
connector->dpms = DRM_MODE_DPMS_OFF;
587584

588585
sdev->connector = connector;
589586

drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static irqreturn_t shmob_drm_irq(int irq, void *arg)
9898
DEFINE_DRM_GEM_DMA_FOPS(shmob_drm_fops);
9999

100100
static const struct drm_driver shmob_drm_driver = {
101-
.driver_features = DRIVER_GEM | DRIVER_MODESET,
101+
.driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC,
102102
DRM_GEM_DMA_DRIVER_OPS,
103103
.fops = &shmob_drm_fops,
104104
.name = "shmob-drm",

0 commit comments

Comments
 (0)