Skip to content

Commit 018cfbd

Browse files
author
Jyri Sarha
committed
drm/tilcdc: tfp410: Add atomic modeset helpers to connector funcs
Add atomic modeset helpers to tfp410 connector funcs. Property handling related helpers, atomic reset helper, and new dpms helper is needed in connector for atomic modeseting to work. The default helper functions are enough. Signed-off-by: Jyri Sarha <[email protected]>
1 parent 7c979b5 commit 018cfbd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/gpu/drm/tilcdc/tilcdc_tfp410.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <linux/of_gpio.h>
2121
#include <linux/pinctrl/pinmux.h>
2222
#include <linux/pinctrl/consumer.h>
23+
#include <drm/drm_atomic_helper.h>
2324

2425
#include "tilcdc_drv.h"
2526

@@ -200,9 +201,12 @@ static struct drm_encoder *tfp410_connector_best_encoder(
200201

201202
static const struct drm_connector_funcs tfp410_connector_funcs = {
202203
.destroy = tfp410_connector_destroy,
203-
.dpms = drm_helper_connector_dpms,
204+
.dpms = drm_atomic_helper_connector_dpms,
204205
.detect = tfp410_connector_detect,
205206
.fill_modes = drm_helper_probe_single_connector_modes,
207+
.reset = drm_atomic_helper_connector_reset,
208+
.atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state,
209+
.atomic_destroy_state = drm_atomic_helper_connector_destroy_state,
206210
};
207211

208212
static const struct drm_connector_helper_funcs tfp410_connector_helper_funcs = {

0 commit comments

Comments
 (0)