Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c81b9942 authored by Dave Airlie's avatar Dave Airlie Committed by Alex Deucher
Browse files

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: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b94b95e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}
+1 −1
Original line number Diff line number Diff line
@@ -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);
}