drm/amd/powerplay: fix spelling mistake and add KERN_WARNING to printks
authorColin Ian King <colin.king@canonical.com>
Mon, 24 Oct 2016 23:14:12 +0000 (00:14 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Oct 2016 18:44:02 +0000 (14:44 -0400)
Fix trivial spelling mistake cant't -> can't and add KERN_WARNING to
printk messages.  Remove redundant spaces before \n too (thanks to
Joe Perches for spotting those).

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c
drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c
drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c
drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c

index e7e8944..34523fe 100644 (file)
@@ -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;
 }
 
index 8c889ca..b579f0c 100644 (file)
@@ -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;
 }
 
index 4ccc0b7..006b220 100644 (file)
@@ -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;
 }
 
index de2a24d..d08f6f1 100644 (file)
@@ -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;
 }