diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-09-15 12:27:02 +0100 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2021-11-12 15:21:46 +0200 |
commit | 2a2d23b68c4e4cd71c9999ea8b8608700c3f9ead (patch) | |
tree | 80297a71737908deb4bfee31835fb226bdb5d43e | |
parent | c582ffadbe6cf64be4544d9d168bcc520bd0c984 (diff) | |
download | linux-2a2d23b68c4e4cd71c9999ea8b8608700c3f9ead.tar.bz2 |
drm/i915: make array states static const
Don't populate the read-only array states on the stack but instead it
static. Also makes the object code smaller.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210915112702.12783-1-colin.king@canonical.com
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_display_power.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_display_power.c b/drivers/gpu/drm/i915/display/intel_display_power.c index 344e3d696702..a31974aa37ce 100644 --- a/drivers/gpu/drm/i915/display/intel_display_power.c +++ b/drivers/gpu/drm/i915/display/intel_display_power.c @@ -900,7 +900,7 @@ static u32 sanitize_target_dc_state(struct drm_i915_private *dev_priv, u32 target_dc_state) { - u32 states[] = { + static const u32 states[] = { DC_STATE_EN_UPTO_DC6, DC_STATE_EN_UPTO_DC5, DC_STATE_EN_DC3CO, |