drm/panfrost: cleanup comments
Subsystems (3)
PATCH v2 1/1 drm/panfrost: cleanup comments
From: Tom Rix <[email protected]>
For spdx
change tab to space delimiter
Use // for *.c
Replacements
commited to committed
regsiters to registers
initialze to initialize
Signed-off-by Tom Rix <[email protected]>
---
v2: remove multiline comment change
drivers/gpu/drm/panfrost/panfrost_drv.c | 2 +- drivers/gpu/drm/panfrost/panfrost_gem_shrinker.c | 2 +- drivers/gpu/drm/panfrost/panfrost_issues.h | 2 +- drivers/gpu/drm/panfrost/panfrost_mmu.c | 2 +- drivers/gpu/drm/panfrost/panfrost_regs.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/panfrost/panfrost_drv.c +1 -1
@@ -562,7 +562,7 @@ static int panfrost_probe(struct platform_device *pdev) pfdev->coherent =device_get_dma_attr (&pdev->dev) ==DEV_DMA_COHERENT ; -/* Allocate and initialze the DRM device. */ +/* Allocate and initialize the DRM device. */ ddev =drm_dev_alloc (&panfrost_drm_driver, &pdev->dev);if (IS_ERR (ddev))return PTR_ERR (ddev);
drivers/gpu/drm/panfrost/panfrost_gem_shrinker.c +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0 */ +// SPDX-License-Identifier: GPL-2.0 /* Copyright (C) 2019 Arm Ltd. * * Based on msm_gem_freedreno.c:
drivers/gpu/drm/panfrost/panfrost_issues.h +1 -1
@@ -14,7 +14,7 @@*/ enum panfrost_hw_issue {/* Need way to guarantee that all previously-translated memory accesses -* are commited */ +* are committed */ HW_ISSUE_6367 ,/* On job complete with non-done the cache is not flushed */
drivers/gpu/drm/panfrost/panfrost_mmu.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0 /* Copyright 2019 Linaro, Ltd, Rob Herring <[email protected]> */ #include <drm/panfrost_drm.h>
drivers/gpu/drm/panfrost/panfrost_regs.h +1 -1
@@ -292,7 +292,7 @@#define AS_FAULTADDRESS_LO (as) (MMU_AS(as) + 0x20)/* (RO) Fault Address for address space n, low word */ #define AS_FAULTADDRESS_HI (as) (MMU_AS(as) + 0x24)/* (RO) Fault Address for address space n, high word */ #define AS_STATUS (as) (MMU_AS(as) + 0x28)/* (RO) Status flags for address space n */ -/* Additional Bifrost AS regsiters */ +/* Additional Bifrost AS registers */ #define AS_TRANSCFG_LO (as) (MMU_AS(as) + 0x30)/* (RW) Translation table configuration for address space n, low word */ #define AS_TRANSCFG_HI (as) (MMU_AS(as) + 0x34)/* (RW) Translation table configuration for address space n, high word */ #define AS_FAULTEXTRA_LO (as) (MMU_AS(as) + 0x38)/* (RO) Secondary fault address for address space n, low word */
Signature · 1 line
2.26.3
Quoted 6 lines · On 02/03/2022 12:45, [email protected] wrote:
From: Tom Rix <[email protected]>
For spdx
change tab to space delimiter
Use // for *.c
Quoted 6 lines
Replacements
commited to committed
regsiters to registers
initialze to initializeSigned-off-by Tom Rix <[email protected]>
Reviewed-by Steven Price <[email protected]>
Quoted 2 lines
---
v2: remove multiline comment change
Thanks for the update. I'll push this to drm-misc-next.
Steve
Quoted 67 lines
drivers/gpu/drm/panfrost/panfrost_drv.c | 2 +- drivers/gpu/drm/panfrost/panfrost_gem_shrinker.c | 2 +- drivers/gpu/drm/panfrost/panfrost_issues.h | 2 +- drivers/gpu/drm/panfrost/panfrost_mmu.c | 2 +- drivers/gpu/drm/panfrost/panfrost_regs.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)drivers/gpu/drm/panfrost/panfrost_drv.c +1
-1@@ -562,7 +562,7 @@ static int panfrost_probe(struct platform_device *pdev) pfdev->coherent =device_get_dma_attr (&pdev->dev) ==DEV_DMA_COHERENT ; -/* Allocate and initialze the DRM device. */ +/* Allocate and initialize the DRM device. */ ddev =drm_dev_alloc (&panfrost_drm_driver, &pdev->dev);if (IS_ERR (ddev))return PTR_ERR (ddev);drivers/gpu/drm/panfrost/panfrost_gem_shrinker.c +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0 */ +// SPDX-License-Identifier: GPL-2.0 /* Copyright (C) 2019 Arm Ltd. * * Based on msm_gem_freedreno.c: drivers/gpu/drm/panfrost/panfrost_issues.h +1
-1@@ -14,7 +14,7 @@*/ enum panfrost_hw_issue {/* Need way to guarantee that all previously-translated memory accesses -* are commited */ +* are committed */ HW_ISSUE_6367 ,/* On job complete with non-done the cache is not flushed */ drivers/gpu/drm/panfrost/panfrost_mmu.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0 /* Copyright 2019 Linaro, Ltd, Rob Herring <[email protected]> */ #include <drm/panfrost_drm.h> drivers/gpu/drm/panfrost/panfrost_regs.h +1
-1@@ -292,7 +292,7 @@#define AS_FAULTADDRESS_LO (as) (MMU_AS(as) + 0x20)/* (RO) Fault Address for address space n, low word */ #define AS_FAULTADDRESS_HI (as) (MMU_AS(as) + 0x24)/* (RO) Fault Address for address space n, high word */ #define AS_STATUS (as) (MMU_AS(as) + 0x28)/* (RO) Status flags for address space n */ -/* Additional Bifrost AS regsiters */ +/* Additional Bifrost AS registers */ #define AS_TRANSCFG_LO (as) (MMU_AS(as) + 0x30)/* (RW) Translation table configuration for address space n, low word */ #define AS_TRANSCFG_HI (as) (MMU_AS(as) + 0x34)/* (RW) Translation table configuration for address space n, high word */ #define AS_FAULTEXTRA_LO (as) (MMU_AS(as) + 0x38)/* (RO) Secondary fault address for address space n, low word */