Skip to content

Commit f63f2c8

Browse files
author
Jyri Sarha
committed
drm/tilcdc: tfp410: Add atomic modeset helpers to connector funcs
commit 018cfbd upstream. 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 8692835 commit f63f2c8

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

@@ -209,9 +210,12 @@ static struct drm_encoder *tfp410_connector_best_encoder(
209210

210211
static const struct drm_connector_funcs tfp410_connector_funcs = {
211212
.destroy = tfp410_connector_destroy,
212-
.dpms = drm_helper_connector_dpms,
213+
.dpms = drm_atomic_helper_connector_dpms,
213214
.detect = tfp410_connector_detect,
214215
.fill_modes = drm_helper_probe_single_connector_modes,
216+
.reset = drm_atomic_helper_connector_reset,
217+
.atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state,
218+
.atomic_destroy_state = drm_atomic_helper_connector_destroy_state,
215219
};
216220

217221
static const struct drm_connector_helper_funcs tfp410_connector_helper_funcs = {

0 commit comments

Comments
 (0)