drm/amdgpu: clean up some inconsistent indenting
Subsystems (2)
PATCH 1/1 drm/amdgpu: clean up some inconsistent indenting
No functional modification involved.
drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c:34 nbio_v7_11_get_rev_id() warn: inconsistent indenting.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c +2 -3
@@ -31,10 +31,9 @@static u32 nbio_v7_11_get_rev_id (struct amdgpu_device *adev) {u32 tmp; -printk ("%s, getid\n" ,__func__); - - tmp =RREG32_SOC15 (NBIO ,0 , regRCC_STRAP1_RCC_DEV0_EPF0_STRAP0); +printk ("%s, getid\n" , __func__); + tmp =RREG32_SOC15 (NBIO ,0 , regRCC_STRAP1_RCC_DEV0_EPF0_STRAP0); tmp &=RCC_STRAP0_RCC_DEV0_EPF0_STRAP0__STRAP_ATI_REV_ID_DEV0_F0_MASK ; tmp >>=RCC_STRAP0_RCC_DEV0_EPF0_STRAP0__STRAP_ATI_REV_ID_DEV0_F0__SHIFT ;
Signature · 1 line
2.20.1.7.g153144c
Christian König
maintainerAm 01.09.23 um 09:02 schrieb Jiapeng Chong:
Quoted 3 lines
No functional modification involved.
drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c:34nbio_v7_11_get_rev_id()warn: inconsistent indenting.
We should probably not have a printk here in the first place.
Christian.
Quoted 25 lines
Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>--- drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c +2
-3@@ -31,10 +31,9 @@static u32 nbio_v7_11_get_rev_id (struct amdgpu_device *adev) {u32 tmp; -printk ("%s, getid\n" ,__func__); - - tmp =RREG32_SOC15 (NBIO ,0 , regRCC_STRAP1_RCC_DEV0_EPF0_STRAP0); +printk ("%s, getid\n" , __func__); + tmp =RREG32_SOC15 (NBIO ,0 , regRCC_STRAP1_RCC_DEV0_EPF0_STRAP0); tmp &=RCC_STRAP0_RCC_DEV0_EPF0_STRAP0__STRAP_ATI_REV_ID_DEV0_F0_MASK ; tmp >>=RCC_STRAP0_RCC_DEV0_EPF0_STRAP0__STRAP_ATI_REV_ID_DEV0_F0__SHIFT ;
Applied and dropped the printk.
Alex
Quoted 37 lines · Christian König
Am 01.09.23 um 09:02 schrieb Jiapeng Chong:
Quoted 3 lines
No functional modification involved.
drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c:34nbio_v7_11_get_rev_id()warn: inconsistent indenting.We should probably not have a printk here in the first place.
Christian.
Quoted 25 lines
Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>--- drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c +2
-3@@ -31,10 +31,9 @@static u32 nbio_v7_11_get_rev_id (struct amdgpu_device *adev) {u32 tmp; -printk ("%s, getid\n" ,__func__); - - tmp =RREG32_SOC15 (NBIO ,0 , regRCC_STRAP1_RCC_DEV0_EPF0_STRAP0); +printk ("%s, getid\n" , __func__); + tmp =RREG32_SOC15 (NBIO ,0 , regRCC_STRAP1_RCC_DEV0_EPF0_STRAP0); tmp &=RCC_STRAP0_RCC_DEV0_EPF0_STRAP0__STRAP_ATI_REV_ID_DEV0_F0_MASK ; tmp >>=RCC_STRAP0_RCC_DEV0_EPF0_STRAP0__STRAP_ATI_REV_ID_DEV0_F0__SHIFT ;