]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm: Constify topology id
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 13 Mar 2020 16:20:46 +0000 (18:20 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 18 Mar 2020 15:52:36 +0000 (17:52 +0200)
Make the topology id const since we don't want to change it.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200313162054.16009-2-ville.syrjala@linux.intel.com
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/drm_connector.c
include/drm/drm_connector.h

index 644f0ad1067176824dafdaccb3d85a7da83247e0..462d8caa6e72866cacead5612e8e326d2672e989 100644 (file)
@@ -2392,7 +2392,7 @@ EXPORT_SYMBOL(drm_mode_put_tile_group);
  * tile group or NULL if not found.
  */
 struct drm_tile_group *drm_mode_get_tile_group(struct drm_device *dev,
-                                              char topology[8])
+                                              const char topology[8])
 {
        struct drm_tile_group *tg;
        int id;
@@ -2422,7 +2422,7 @@ EXPORT_SYMBOL(drm_mode_get_tile_group);
  * new tile group or NULL.
  */
 struct drm_tile_group *drm_mode_create_tile_group(struct drm_device *dev,
-                                                 char topology[8])
+                                                 const char topology[8])
 {
        struct drm_tile_group *tg;
        int ret;
index 19ae6bb5c85be15d15b7589bf17591332bc0e653..fd543d1db9b2c5042dba43b8d6d6676098210d09 100644 (file)
@@ -1617,9 +1617,9 @@ struct drm_tile_group {
 };
 
 struct drm_tile_group *drm_mode_create_tile_group(struct drm_device *dev,
-                                                 char topology[8]);
+                                                 const char topology[8]);
 struct drm_tile_group *drm_mode_get_tile_group(struct drm_device *dev,
-                                              char topology[8]);
+                                              const char topology[8]);
 void drm_mode_put_tile_group(struct drm_device *dev,
                             struct drm_tile_group *tg);