Skip to content

Commit 523bafb

Browse files
committed
drm/i915/dmc_wl: store register ranges in rodata
Add const to register range arrays to store them in rodata. They don't need to be modified. Cc: Gustavo Sousa <gustavo.sousa@intel.com> Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241218141734.2583601-1-jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
1 parent 96bd1d5 commit 523bafb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpu/drm/i915/display/intel_dmc_wl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ struct intel_dmc_wl_range {
5555
u32 end;
5656
};
5757

58-
static struct intel_dmc_wl_range powered_off_ranges[] = {
58+
static const struct intel_dmc_wl_range powered_off_ranges[] = {
5959
{ .start = 0x60000, .end = 0x7ffff },
6060
{},
6161
};
6262

63-
static struct intel_dmc_wl_range xe3lpd_dc5_dc6_dmc_ranges[] = {
63+
static const struct intel_dmc_wl_range xe3lpd_dc5_dc6_dmc_ranges[] = {
6464
{ .start = 0x45500 }, /* DC_STATE_SEL */
6565
{ .start = 0x457a0, .end = 0x457b0 }, /* DC*_RESIDENCY_COUNTER */
6666
{ .start = 0x45504 }, /* DC_STATE_EN */
@@ -94,7 +94,7 @@ static struct intel_dmc_wl_range xe3lpd_dc5_dc6_dmc_ranges[] = {
9494
{},
9595
};
9696

97-
static struct intel_dmc_wl_range xe3lpd_dc3co_dmc_ranges[] = {
97+
static const struct intel_dmc_wl_range xe3lpd_dc3co_dmc_ranges[] = {
9898
{ .start = 0x454a0 }, /* CHICKEN_DCPR_4 */
9999

100100
{ .start = 0x45504 }, /* DC_STATE_EN */

0 commit comments

Comments
 (0)