]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/dsc: make parameter arrays const
authorJani Nikula <jani.nikula@intel.com>
Mon, 4 Nov 2019 14:14:36 +0000 (16:14 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 5 Nov 2019 12:46:45 +0000 (14:46 +0200)
No need for them to be mutable.

Cc: Manasi Navare <manasi.d.navare@intel.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191104141439.26312-1-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_vdsc.c

index 9cb36f855f073d2236cb301572f21b9c7693c39e..763f1d7208e909eebef458b4455e5caa9238d969 100644 (file)
@@ -33,7 +33,7 @@ enum COLUMN_INDEX_BPC {
 #define DSC_SUPPORTED_VERSION_MIN              1
 
 /* From DSC_v1.11 spec, rc_parameter_Set syntax element typically constant */
-static u16 rc_buf_thresh[] = {
+static const u16 rc_buf_thresh[] = {
        896, 1792, 2688, 3584, 4480, 5376, 6272, 6720, 7168, 7616,
        7744, 7872, 8000, 8064
 };
@@ -53,7 +53,7 @@ struct rc_parameters {
  * Selected Rate Control Related Parameter Recommended Values
  * from DSC_v1.11 spec & C Model release: DSC_model_20161212
  */
-static struct rc_parameters rc_params[][MAX_COLUMN_INDEX] = {
+static const struct rc_parameters rc_params[][MAX_COLUMN_INDEX] = {
 {
        /* 6BPP/8BPC */
        { 768, 15, 6144, 3, 13, 11, 11, {