mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 02:21:47 +00:00
drm/radeon/si/ci: make u8 static arrays constant
These two arrays don't change, just make them constant, reduces data segment by a few bytes. Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
b94b95e7e3
commit
c81b99423b
@ -129,7 +129,7 @@ void ci_reset_smc(struct radeon_device *rdev)
|
||||
|
||||
int ci_program_jump_on_start(struct radeon_device *rdev)
|
||||
{
|
||||
static u8 data[] = { 0xE0, 0x00, 0x80, 0x40 };
|
||||
static const u8 data[] = { 0xE0, 0x00, 0x80, 0x40 };
|
||||
|
||||
return ci_copy_bytes_to_smc(rdev, 0x0, data, 4, sizeof(data)+1);
|
||||
}
|
||||
|
@ -135,7 +135,7 @@ void si_reset_smc(struct radeon_device *rdev)
|
||||
|
||||
int si_program_jump_on_start(struct radeon_device *rdev)
|
||||
{
|
||||
static u8 data[] = { 0x0E, 0x00, 0x40, 0x40 };
|
||||
static const u8 data[] = { 0x0E, 0x00, 0x40, 0x40 };
|
||||
|
||||
return si_copy_bytes_to_smc(rdev, 0x0, data, 4, sizeof(data)+1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user