drm/amd/powerplay: fix spelling mistake and add KERN_WARNING to printks
Subsystems (2)
PATCH 1/1 drm/amd/powerplay: fix spelling mistake and add KERN_WARNING to printks
From: Colin Ian King <[email protected]>
Fix trivial spelling mistake cant't -> can't and add KERN_WARNING to printk messages.
Signed-off-by Colin Ian King <[email protected]>
--- drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c | 4 ++-- drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c | 4 ++-- drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c | 4 ++-- drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c +2 -2
@@ -2125,7 +2125,7 @@ uint32_t fiji_get_offsetof(uint32_t type, uint32_t member)return offsetof(SMU73_Discrete_DpmTable , LowSclkInterruptThreshold); } } -printk ("cant't get the offset of type %x member %x \n" , type, member); +printk (KERN_WARNING "can't get the offset of type %x member %x \n" , type, member);return 0 ; }
@@ -2150,7 +2150,7 @@ uint32_t fiji_get_mac_definition(uint32_t value)return SMU73_MAX_LEVELS_MVDD ; } -printk ("cant't get the mac of %x \n" , value); +printk (KERN_WARNING "can't get the mac of %x \n" , value);return 0 ; }
drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c +2 -2
@@ -2140,7 +2140,7 @@ uint32_t iceland_get_offsetof(uint32_t type, uint32_t member)return offsetof(SMU71_Discrete_DpmTable , LowSclkInterruptThreshold); } } -printk ("cant't get the offset of type %x member %x \n" , type, member); +printk (KERN_WARNING "can't get the offset of type %x member %x \n" , type, member);return 0 ; }
@@ -2163,7 +2163,7 @@ uint32_t iceland_get_mac_definition(uint32_t value)return SMU71_MAX_LEVELS_MVDD ; } -printk ("cant't get the mac of %x \n" , value); +printk (KERN_WARNING "can't get the mac of %x \n" , value);return 0 ; }
drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c +2 -2
@@ -2174,7 +2174,7 @@ uint32_t polaris10_get_offsetof(uint32_t type, uint32_t member)return offsetof(SMU74_Discrete_DpmTable , LowSclkInterruptThreshold); } } -printk ("cant't get the offset of type %x member %x \n" , type, member); +printk (KERN_WARNING "can't get the offset of type %x member %x \n" , type, member);return 0 ; }
@@ -2201,7 +2201,7 @@ uint32_t polaris10_get_mac_definition(uint32_t value)return SMU7_UVD_MCLK_HANDSHAKE_DISABLE ; } -printk ("cant't get the mac of %x \n" , value); +printk (KERN_WARNING "can't get the mac of %x \n" , value);return 0 ; }
drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c +2 -2
@@ -2651,7 +2651,7 @@ uint32_t tonga_get_offsetof(uint32_t type, uint32_t member)return offsetof(SMU72_Discrete_DpmTable , LowSclkInterruptThreshold); } } -printk ("cant't get the offset of type %x member %x\n" , type, member); +printk (KERN_WARNING "can't get the offset of type %x member %x\n" , type, member);return 0 ; }
@@ -2675,7 +2675,7 @@ uint32_t tonga_get_mac_definition(uint32_t value)case SMU_MAX_LEVELS_MVDD :return SMU72_MAX_LEVELS_MVDD ; } -printk ("cant't get the mac value %x\n" , value); +printk (KERN_WARNING "can't get the mac value %x\n" , value);return 0 ; }
Signature · 6 lines
2.9.3 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 4 lines · Colin King
From: Colin Ian King <[email protected]>
Fix trivial spelling mistake cant't -> can't and add
KERN_WARNINGto printk messages.
trivia:
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c
Quoted 1 line
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c +0
-0
[]
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c uint32_t fiji_get_offsetof(uint32_t type, uint32_t member) · line 2128
Quoted 6 lines
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c +1
-1@@ -2125,7 +2125,7 @@ uint32_t fiji_get_offsetof(uint32_t type, uint32_t member)return offsetof(SMU73_Discrete_DpmTable , LowSclkInterruptThreshold); } } -printk ("cant't get the offset of type %x member %x \n" , type, member); +printk (KERN_WARNING "can't get the offset of type %x member %x \n" , type, member);
you can also delete the spaces before a newline.
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c uint32_t fiji_get_mac_definition(uint32_t value) · line 2153
Quoted 9 lines
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c +1
-1return 0 ; }@@ -2150,7 +2150,7 @@ uint32_t fiji_get_mac_definition(uint32_t value)return SMU73_MAX_LEVELS_MVDD ; } -printk ("cant't get the mac of %x \n" , value); +printk (KERN_WARNING "can't get the mac of %x \n" , value);
et al, below
drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c
Quoted 4 lines
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c +0
-0return 0 ; }drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c +0
-0
[]
Quoted 62 lines
drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c +2
-2@@ -2140,7 +2140,7 @@ uint32_t iceland_get_offsetof(uint32_t type, uint32_t member)return offsetof(SMU71_Discrete_DpmTable , LowSclkInterruptThreshold); } } -printk ("cant't get the offset of type %x member %x \n" , type, member); +printk (KERN_WARNING "can't get the offset of type %x member %x \n" , type, member);return 0 ; }@@ -2163,7 +2163,7 @@ uint32_t iceland_get_mac_definition(uint32_t value)return SMU71_MAX_LEVELS_MVDD ; } -printk ("cant't get the mac of %x \n" , value); +printk (KERN_WARNING "can't get the mac of %x \n" , value);return 0 ; }drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c +2
-2@@ -2174,7 +2174,7 @@ uint32_t polaris10_get_offsetof(uint32_t type, uint32_t member)return offsetof(SMU74_Discrete_DpmTable , LowSclkInterruptThreshold); } } -printk ("cant't get the offset of type %x member %x \n" , type, member); +printk (KERN_WARNING "can't get the offset of type %x member %x \n" , type, member);return 0 ; }@@ -2201,7 +2201,7 @@ uint32_t polaris10_get_mac_definition(uint32_t value)return SMU7_UVD_MCLK_HANDSHAKE_DISABLE ; } -printk ("cant't get the mac of %x \n" , value); +printk (KERN_WARNING "can't get the mac of %x \n" , value);return 0 ; }drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c +2
-2@@ -2651,7 +2651,7 @@ uint32_t tonga_get_offsetof(uint32_t type, uint32_t member)return offsetof(SMU72_Discrete_DpmTable , LowSclkInterruptThreshold); } } -printk ("cant't get the offset of type %x member %x\n" , type, member); +printk (KERN_WARNING "can't get the offset of type %x member %x\n" , type, member);return 0 ; }@@ -2675,7 +2675,7 @@ uint32_t tonga_get_mac_definition(uint32_t value)case SMU_MAX_LEVELS_MVDD :return SMU72_MAX_LEVELS_MVDD ; } -printk ("cant't get the mac value %x\n" , value); +printk (KERN_WARNING "can't get the mac value %x\n" , value);return 0 ; }