diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-12-09 09:19:31 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-12-11 03:12:44 -0500 |
commit | f98828769c8838f526703ef180b3088a714af2f9 (patch) | |
tree | 997883aac8c95cc23bf1a557551a4371f86c6385 | |
parent | fb9f7a6b0673ac65e7345b0a96b159708d413ee3 (diff) |
drm: Pass 'name' to drm_crtc_init_with_planes()
Done with coccinelle for the most part. However, it thinks '...' is
part of the semantic patch, so I put an 'int DOTDOTDOT' placeholder
in its place and got rid of it with sed afterwards.
I didn't convert drm_crtc_init() since passing the varargs through
would mean either cpp macros or va_list, and I figured we don't
care about these legacy functions enough to warrant the extra pain.
@@
identifier dev, crtc, primary, cursor, funcs;
@@
int drm_crtc_init_with_planes(struct drm_device *dev,
struct drm_crtc *crtc,
struct drm_plane *primary, struct drm_plane *cursor,
const struct drm_crtc_funcs *funcs
+ ,const char *name, int DOTDOTDOT
)
{ ... }
@@
identifier dev, crtc, primary, cursor, funcs;
@@
int drm_crtc_init_with_planes(struct drm_device *dev,
struct drm_crtc *crtc,
struct drm_plane *primary, struct drm_plane *cursor,
const struct drm_crtc_funcs *funcs
+ ,const char *name, int DOTDOTDOT
);
@@
expression E1, E2, E3, E4, E5;
@@
drm_crtc_init_with_planes(E1, E2, E3, E4, E5
+ ,NULL
)
v2: Split crtc and plane changes apart
Pass NULL for no-name instead of ""
Leave drm_crtc_init() alone
v3: Add ', or NULL...' to @name kernel doc (Jani)
Annotate the function with __printf() attribute (Jani)
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1449670771-2751-1-git-send-email-ville.syrjala@linux.intel.com
-rw-r--r-- | drivers/gpu/drm/armada/armada_crtc.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_plane_helper.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_crtc.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/imx/imx-drm-core.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_crtc.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/sti/sti_crtc.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/tegra/dc.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_crtc.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/virtio/virtgpu_display.c | 2 | ||||
-rw-r--r-- | include/drm/drm_crtc.h | 12 |
18 files changed, 29 insertions, 22 deletions
diff --git a/drivers/gpu/drm/armada/armada_crtc.c b/drivers/gpu/drm/armada/armada_crtc.c index cebcab560626..c3f3a7031bb1 100644 --- a/drivers/gpu/drm/armada/armada_crtc.c +++ b/drivers/gpu/drm/armada/armada_crtc.c | |||
@@ -1223,7 +1223,7 @@ static int armada_drm_crtc_create(struct drm_device *drm, struct device *dev, | |||
1223 | } | 1223 | } |
1224 | 1224 | ||
1225 | ret = drm_crtc_init_with_planes(drm, &dcrtc->crtc, &primary->base, NULL, | 1225 | ret = drm_crtc_init_with_planes(drm, &dcrtc->crtc, &primary->base, NULL, |
1226 | &armada_crtc_funcs); | 1226 | &armada_crtc_funcs, NULL); |
1227 | if (ret) | 1227 | if (ret) |
1228 | goto err_crtc_init; | 1228 | goto err_crtc_init; |
1229 | 1229 | ||
diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c index 9f6e234e7029..468a14f266a7 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | |||
@@ -344,7 +344,7 @@ int atmel_hlcdc_crtc_create(struct drm_device *dev) | |||
344 | ret = drm_crtc_init_with_planes(dev, &crtc->base, | 344 | ret = drm_crtc_init_with_planes(dev, &crtc->base, |
345 | &planes->primary->base, | 345 | &planes->primary->base, |
346 | planes->cursor ? &planes->cursor->base : NULL, | 346 | planes->cursor ? &planes->cursor->base : NULL, |
347 | &atmel_hlcdc_crtc_funcs); | 347 | &atmel_hlcdc_crtc_funcs, NULL); |
348 | if (ret < 0) | 348 | if (ret < 0) |
349 | goto fail; | 349 | goto fail; |
350 | 350 | ||
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 99e7efebedda..27922bbcde35 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c | |||
@@ -657,6 +657,7 @@ DEFINE_WW_CLASS(crtc_ww_class); | |||
657 | * @primary: Primary plane for CRTC | 657 | * @primary: Primary plane for CRTC |
658 | * @cursor: Cursor plane for CRTC | 658 | * @cursor: Cursor plane for CRTC |
659 | * @funcs: callbacks for the new CRTC | 659 | * @funcs: callbacks for the new CRTC |
660 | * @name: printf style format string for the CRTC name, or NULL for default name | ||
660 | * | 661 | * |
661 | * Inits a new object created as base part of a driver crtc object. | 662 | * Inits a new object created as base part of a driver crtc object. |
662 | * | 663 | * |
@@ -666,7 +667,8 @@ DEFINE_WW_CLASS(crtc_ww_class); | |||
666 | int drm_crtc_init_with_planes(struct drm_device *dev, struct drm_crtc *crtc, | 667 | int drm_crtc_init_with_planes(struct drm_device *dev, struct drm_crtc *crtc, |
667 | struct drm_plane *primary, | 668 | struct drm_plane *primary, |
668 | struct drm_plane *cursor, | 669 | struct drm_plane *cursor, |
669 | const struct drm_crtc_funcs *funcs) | 670 | const struct drm_crtc_funcs *funcs, |
671 | const char *name, ...) | ||
670 | { | 672 | { |
671 | struct drm_mode_config *config = &dev->mode_config; | 673 | struct drm_mode_config *config = &dev->mode_config; |
672 | int ret; | 674 | int ret; |
diff --git a/drivers/gpu/drm/drm_plane_helper.c b/drivers/gpu/drm/drm_plane_helper.c index 8455e996dd9c..f5a4273e71b5 100644 --- a/drivers/gpu/drm/drm_plane_helper.c +++ b/drivers/gpu/drm/drm_plane_helper.c | |||
@@ -402,7 +402,8 @@ int drm_crtc_init(struct drm_device *dev, struct drm_crtc *crtc, | |||
402 | struct drm_plane *primary; | 402 | struct drm_plane *primary; |
403 | 403 | ||
404 | primary = create_primary_plane(dev); | 404 | primary = create_primary_plane(dev); |
405 | return drm_crtc_init_with_planes(dev, crtc, primary, NULL, funcs); | 405 | return drm_crtc_init_with_planes(dev, crtc, primary, NULL, funcs, |
406 | NULL); | ||
406 | } | 407 | } |
407 | EXPORT_SYMBOL(drm_crtc_init); | 408 | EXPORT_SYMBOL(drm_crtc_init); |
408 | 409 | ||
diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c index b3ba27fd9a6b..9d30a0fa3248 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_crtc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.c | |||
@@ -150,7 +150,7 @@ struct exynos_drm_crtc *exynos_drm_crtc_create(struct drm_device *drm_dev, | |||
150 | private->crtc[pipe] = crtc; | 150 | private->crtc[pipe] = crtc; |
151 | 151 | ||
152 | ret = drm_crtc_init_with_planes(drm_dev, crtc, plane, NULL, | 152 | ret = drm_crtc_init_with_planes(drm_dev, crtc, plane, NULL, |
153 | &exynos_crtc_funcs); | 153 | &exynos_crtc_funcs, NULL); |
154 | if (ret < 0) | 154 | if (ret < 0) |
155 | goto err_crtc; | 155 | goto err_crtc; |
156 | 156 | ||
diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c index 82a3d311e164..d8ab8f0af10c 100644 --- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c +++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c | |||
@@ -175,7 +175,7 @@ int fsl_dcu_drm_crtc_create(struct fsl_dcu_drm_device *fsl_dev) | |||
175 | 175 | ||
176 | primary = fsl_dcu_drm_primary_create_plane(fsl_dev->drm); | 176 | primary = fsl_dcu_drm_primary_create_plane(fsl_dev->drm); |
177 | ret = drm_crtc_init_with_planes(fsl_dev->drm, crtc, primary, NULL, | 177 | ret = drm_crtc_init_with_planes(fsl_dev->drm, crtc, primary, NULL, |
178 | &fsl_dcu_drm_crtc_funcs); | 178 | &fsl_dcu_drm_crtc_funcs, NULL); |
179 | if (ret < 0) | 179 | if (ret < 0) |
180 | return ret; | 180 | return ret; |
181 | 181 | ||
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 696f7543d264..5a3370798ba3 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -14120,7 +14120,7 @@ static void intel_crtc_init(struct drm_device *dev, int pipe) | |||
14120 | goto fail; | 14120 | goto fail; |
14121 | 14121 | ||
14122 | ret = drm_crtc_init_with_planes(dev, &intel_crtc->base, primary, | 14122 | ret = drm_crtc_init_with_planes(dev, &intel_crtc->base, primary, |
14123 | cursor, &intel_crtc_funcs); | 14123 | cursor, &intel_crtc_funcs, NULL); |
14124 | if (ret) | 14124 | if (ret) |
14125 | goto fail; | 14125 | goto fail; |
14126 | 14126 | ||
diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index 882cf3d4b7a8..09e20ea69419 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c | |||
@@ -373,7 +373,7 @@ int imx_drm_add_crtc(struct drm_device *drm, struct drm_crtc *crtc, | |||
373 | imx_drm_crtc->imx_drm_helper_funcs.crtc_helper_funcs); | 373 | imx_drm_crtc->imx_drm_helper_funcs.crtc_helper_funcs); |
374 | 374 | ||
375 | drm_crtc_init_with_planes(drm, crtc, primary_plane, NULL, | 375 | drm_crtc_init_with_planes(drm, crtc, primary_plane, NULL, |
376 | imx_drm_crtc->imx_drm_helper_funcs.crtc_funcs); | 376 | imx_drm_crtc->imx_drm_helper_funcs.crtc_funcs, NULL); |
377 | 377 | ||
378 | return 0; | 378 | return 0; |
379 | 379 | ||
diff --git a/drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c b/drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c index 6ac9aa165768..28df397c3b04 100644 --- a/drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c +++ b/drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c | |||
@@ -678,7 +678,8 @@ struct drm_crtc *mdp4_crtc_init(struct drm_device *dev, | |||
678 | drm_flip_work_init(&mdp4_crtc->unref_cursor_work, | 678 | drm_flip_work_init(&mdp4_crtc->unref_cursor_work, |
679 | "unref cursor", unref_cursor_worker); | 679 | "unref cursor", unref_cursor_worker); |
680 | 680 | ||
681 | drm_crtc_init_with_planes(dev, crtc, plane, NULL, &mdp4_crtc_funcs); | 681 | drm_crtc_init_with_planes(dev, crtc, plane, NULL, &mdp4_crtc_funcs, |
682 | NULL); | ||
682 | drm_crtc_helper_add(crtc, &mdp4_crtc_helper_funcs); | 683 | drm_crtc_helper_add(crtc, &mdp4_crtc_helper_funcs); |
683 | plane->crtc = crtc; | 684 | plane->crtc = crtc; |
684 | 685 | ||
diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c index 7f9f4ac88029..20cee5ce4071 100644 --- a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c +++ b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c | |||
@@ -797,7 +797,8 @@ struct drm_crtc *mdp5_crtc_init(struct drm_device *dev, | |||
797 | snprintf(mdp5_crtc->name, sizeof(mdp5_crtc->name), "%s:%d", | 797 | snprintf(mdp5_crtc->name, sizeof(mdp5_crtc->name), "%s:%d", |
798 | pipe2name(mdp5_plane_pipe(plane)), id); | 798 | pipe2name(mdp5_plane_pipe(plane)), id); |
799 | 799 | ||
800 | drm_crtc_init_with_planes(dev, crtc, plane, NULL, &mdp5_crtc_funcs); | 800 | drm_crtc_init_with_planes(dev, crtc, plane, NULL, &mdp5_crtc_funcs, |
801 | NULL); | ||
801 | 802 | ||
802 | drm_flip_work_init(&mdp5_crtc->unref_cursor_work, | 803 | drm_flip_work_init(&mdp5_crtc->unref_cursor_work, |
803 | "unref cursor", unref_cursor_worker); | 804 | "unref cursor", unref_cursor_worker); |
diff --git a/drivers/gpu/drm/omapdrm/omap_crtc.c b/drivers/gpu/drm/omapdrm/omap_crtc.c index ad09590e8a46..2ed0754ed19e 100644 --- a/drivers/gpu/drm/omapdrm/omap_crtc.c +++ b/drivers/gpu/drm/omapdrm/omap_crtc.c | |||
@@ -524,7 +524,7 @@ struct drm_crtc *omap_crtc_init(struct drm_device *dev, | |||
524 | omap_crtc->mgr = omap_dss_get_overlay_manager(channel); | 524 | omap_crtc->mgr = omap_dss_get_overlay_manager(channel); |
525 | 525 | ||
526 | ret = drm_crtc_init_with_planes(dev, crtc, plane, NULL, | 526 | ret = drm_crtc_init_with_planes(dev, crtc, plane, NULL, |
527 | &omap_crtc_funcs); | 527 | &omap_crtc_funcs, NULL); |
528 | if (ret < 0) { | 528 | if (ret < 0) { |
529 | kfree(omap_crtc); | 529 | kfree(omap_crtc); |
530 | return NULL; | 530 | return NULL; |
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c index 48cb19949ca3..88a4b706be16 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c | |||
@@ -613,7 +613,7 @@ int rcar_du_crtc_create(struct rcar_du_group *rgrp, unsigned int index) | |||
613 | 613 | ||
614 | ret = drm_crtc_init_with_planes(rcdu->ddev, crtc, | 614 | ret = drm_crtc_init_with_planes(rcdu->ddev, crtc, |
615 | &rgrp->planes[index % 2].plane, | 615 | &rgrp->planes[index % 2].plane, |
616 | NULL, &crtc_funcs); | 616 | NULL, &crtc_funcs, NULL); |
617 | if (ret < 0) | 617 | if (ret < 0) |
618 | return ret; | 618 | return ret; |
619 | 619 | ||
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index 03c47eeadc81..8e89e80ec906 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c | |||
@@ -1492,7 +1492,7 @@ static int vop_create_crtc(struct vop *vop) | |||
1492 | } | 1492 | } |
1493 | 1493 | ||
1494 | ret = drm_crtc_init_with_planes(drm_dev, crtc, primary, cursor, | 1494 | ret = drm_crtc_init_with_planes(drm_dev, crtc, primary, cursor, |
1495 | &vop_crtc_funcs); | 1495 | &vop_crtc_funcs, NULL); |
1496 | if (ret) | 1496 | if (ret) |
1497 | return ret; | 1497 | return ret; |
1498 | 1498 | ||
diff --git a/drivers/gpu/drm/sti/sti_crtc.c b/drivers/gpu/drm/sti/sti_crtc.c index 3ae09dcd4fd8..de11c7cfb02f 100644 --- a/drivers/gpu/drm/sti/sti_crtc.c +++ b/drivers/gpu/drm/sti/sti_crtc.c | |||
@@ -367,7 +367,7 @@ int sti_crtc_init(struct drm_device *drm_dev, struct sti_mixer *mixer, | |||
367 | int res; | 367 | int res; |
368 | 368 | ||
369 | res = drm_crtc_init_with_planes(drm_dev, crtc, primary, cursor, | 369 | res = drm_crtc_init_with_planes(drm_dev, crtc, primary, cursor, |
370 | &sti_crtc_funcs); | 370 | &sti_crtc_funcs, NULL); |
371 | if (res) { | 371 | if (res) { |
372 | DRM_ERROR("Can't initialze CRTC\n"); | 372 | DRM_ERROR("Can't initialze CRTC\n"); |
373 | return -EINVAL; | 373 | return -EINVAL; |
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index e9f24a85a103..be894103fa49 100644 --- a/drivers/gpu/drm/tegra/dc.c +++ b/drivers/gpu/drm/tegra/dc.c | |||
@@ -1732,7 +1732,7 @@ static int tegra_dc_init(struct host1x_client *client) | |||
1732 | } | 1732 | } |
1733 | 1733 | ||
1734 | err = drm_crtc_init_with_planes(drm, &dc->base, primary, cursor, | 1734 | err = drm_crtc_init_with_planes(drm, &dc->base, primary, cursor, |
1735 | &tegra_crtc_funcs); | 1735 | &tegra_crtc_funcs, NULL); |
1736 | if (err < 0) | 1736 | if (err < 0) |
1737 | goto cleanup; | 1737 | goto cleanup; |
1738 | 1738 | ||
diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c index 265064c62d49..2168a99d59aa 100644 --- a/drivers/gpu/drm/vc4/vc4_crtc.c +++ b/drivers/gpu/drm/vc4/vc4_crtc.c | |||
@@ -606,7 +606,7 @@ static int vc4_crtc_bind(struct device *dev, struct device *master, void *data) | |||
606 | } | 606 | } |
607 | 607 | ||
608 | drm_crtc_init_with_planes(drm, crtc, primary_plane, cursor_plane, | 608 | drm_crtc_init_with_planes(drm, crtc, primary_plane, cursor_plane, |
609 | &vc4_crtc_funcs); | 609 | &vc4_crtc_funcs, NULL); |
610 | drm_crtc_helper_add(crtc, &vc4_crtc_helper_funcs); | 610 | drm_crtc_helper_add(crtc, &vc4_crtc_helper_funcs); |
611 | primary_plane->crtc = crtc; | 611 | primary_plane->crtc = crtc; |
612 | cursor_plane->crtc = crtc; | 612 | cursor_plane->crtc = crtc; |
diff --git a/drivers/gpu/drm/virtio/virtgpu_display.c b/drivers/gpu/drm/virtio/virtgpu_display.c index 623c98cf024d..ef4cef0c8ece 100644 --- a/drivers/gpu/drm/virtio/virtgpu_display.c +++ b/drivers/gpu/drm/virtio/virtgpu_display.c | |||
@@ -431,7 +431,7 @@ static int vgdev_output_init(struct virtio_gpu_device *vgdev, int index) | |||
431 | if (IS_ERR(plane)) | 431 | if (IS_ERR(plane)) |
432 | return PTR_ERR(plane); | 432 | return PTR_ERR(plane); |
433 | drm_crtc_init_with_planes(dev, crtc, plane, NULL, | 433 | drm_crtc_init_with_planes(dev, crtc, plane, NULL, |
434 | &virtio_gpu_crtc_funcs); | 434 | &virtio_gpu_crtc_funcs, NULL); |
435 | drm_mode_crtc_set_gamma_size(crtc, 256); | 435 | drm_mode_crtc_set_gamma_size(crtc, 256); |
436 | drm_crtc_helper_add(crtc, &virtio_gpu_crtc_helper_funcs); | 436 | drm_crtc_helper_add(crtc, &virtio_gpu_crtc_helper_funcs); |
437 | plane->crtc = crtc; | 437 | plane->crtc = crtc; |
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 4f587a5bc88f..f0127e7b0ee2 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -2144,11 +2144,13 @@ struct drm_prop_enum_list { | |||
2144 | char *name; | 2144 | char *name; |
2145 | }; | 2145 | }; |
2146 | 2146 | ||
2147 | extern int drm_crtc_init_with_planes(struct drm_device *dev, | 2147 | extern __printf(6, 7) |
2148 | struct drm_crtc *crtc, | 2148 | int drm_crtc_init_with_planes(struct drm_device *dev, |
2149 | struct drm_plane *primary, | 2149 | struct drm_crtc *crtc, |
2150 | struct drm_plane *cursor, | 2150 | struct drm_plane *primary, |
2151 | const struct drm_crtc_funcs *funcs); | 2151 | struct drm_plane *cursor, |
2152 | const struct drm_crtc_funcs *funcs, | ||
2153 | const char *name, ...); | ||
2152 | extern void drm_crtc_cleanup(struct drm_crtc *crtc); | 2154 | extern void drm_crtc_cleanup(struct drm_crtc *crtc); |
2153 | extern unsigned int drm_crtc_index(struct drm_crtc *crtc); | 2155 | extern unsigned int drm_crtc_index(struct drm_crtc *crtc); |
2154 | 2156 | ||