|
@@ -1152,6 +1152,7 @@ EXPORT_SYMBOL(drm_encoder_cleanup);
|
|
* @formats: array of supported formats (%DRM_FORMAT_*)
|
|
* @formats: array of supported formats (%DRM_FORMAT_*)
|
|
* @format_count: number of elements in @formats
|
|
* @format_count: number of elements in @formats
|
|
* @type: type of plane (overlay, primary, cursor)
|
|
* @type: type of plane (overlay, primary, cursor)
|
|
|
|
+ * @name: printf style format string for the plane name, or NULL for default name
|
|
*
|
|
*
|
|
* Initializes a plane object of type @type.
|
|
* Initializes a plane object of type @type.
|
|
*
|
|
*
|
|
@@ -1162,7 +1163,8 @@ int drm_universal_plane_init(struct drm_device *dev, struct drm_plane *plane,
|
|
unsigned long possible_crtcs,
|
|
unsigned long possible_crtcs,
|
|
const struct drm_plane_funcs *funcs,
|
|
const struct drm_plane_funcs *funcs,
|
|
const uint32_t *formats, unsigned int format_count,
|
|
const uint32_t *formats, unsigned int format_count,
|
|
- enum drm_plane_type type)
|
|
|
|
|
|
+ enum drm_plane_type type,
|
|
|
|
+ const char *name, ...)
|
|
{
|
|
{
|
|
struct drm_mode_config *config = &dev->mode_config;
|
|
struct drm_mode_config *config = &dev->mode_config;
|
|
int ret;
|
|
int ret;
|
|
@@ -1242,7 +1244,7 @@ int drm_plane_init(struct drm_device *dev, struct drm_plane *plane,
|
|
|
|
|
|
type = is_primary ? DRM_PLANE_TYPE_PRIMARY : DRM_PLANE_TYPE_OVERLAY;
|
|
type = is_primary ? DRM_PLANE_TYPE_PRIMARY : DRM_PLANE_TYPE_OVERLAY;
|
|
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
|
|
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
|
|
- formats, format_count, type);
|
|
|
|
|
|
+ formats, format_count, type, NULL);
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(drm_plane_init);
|
|
EXPORT_SYMBOL(drm_plane_init);
|
|
|
|
|