]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm: plane: Make 'formats' parameter to drm_plane_init() const
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 19 Dec 2011 22:06:46 +0000 (00:06 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Dec 2011 10:05:06 +0000 (10:05 +0000)
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c
include/drm/drm_crtc.h

index b98e49112081e8c2b4362c79452a27ff14ab6096..80cfe1cbeb99302363a475f93c4de1ad2e835975 100644 (file)
@@ -554,7 +554,7 @@ EXPORT_SYMBOL(drm_encoder_cleanup);
 int drm_plane_init(struct drm_device *dev, struct drm_plane *plane,
                   unsigned long possible_crtcs,
                   const struct drm_plane_funcs *funcs,
-                  uint32_t *formats, uint32_t format_count)
+                  const uint32_t *formats, uint32_t format_count)
 {
        mutex_lock(&dev->mode_config.mutex);
 
index dd557272eca769625f0e41e1eef66603b9328517..42c89b201ffd9bc7b32e40680ab04be4946ec37c 100644 (file)
@@ -828,7 +828,7 @@ extern int drm_plane_init(struct drm_device *dev,
                          struct drm_plane *plane,
                          unsigned long possible_crtcs,
                          const struct drm_plane_funcs *funcs,
-                         uint32_t *formats, uint32_t format_count);
+                         const uint32_t *formats, uint32_t format_count);
 extern void drm_plane_cleanup(struct drm_plane *plane);
 
 extern void drm_encoder_cleanup(struct drm_encoder *encoder);