drm/radeon/si/ci: make u8 static arrays constant
authorDave Airlie <airlied@redhat.com>
Mon, 10 Nov 2014 06:51:08 +0000 (16:51 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Nov 2014 16:56:46 +0000 (11:56 -0500)
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>
drivers/gpu/drm/radeon/ci_smc.c
drivers/gpu/drm/radeon/si_smc.c

index b630edc2fd0c5d2b27c78bc8042eece5041076d5..e78bcad7a43e0dbef02ceb4854cef8d76837573b 100644 (file)
@@ -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);
 }
index 73dbc79c959d1f8093f035ac0dda87c561728429..e5bb92f16775296e5de6715daac954a78291897a 100644 (file)
@@ -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);
 }