[PATCH] video: s3c-fb: Use platform_get_irq() to get the interrupt

2022-02-10 Thread zhaoxiao
ining. In preparation for removal of static setup of IRQ resource from DT core code use platform_get_irq(). Signed-off-by: zhaoxiao --- drivers/video/fbdev/s3c-fb.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/video/fbdev/s3c-fb.c b/drivers/video/fbdev/s3c-

[PATCH] drm/radeon:WARNING opportunity for max()

2021-11-15 Thread zhaoxiao
Fix following coccicheck warning: drivers/gpu/drm/radeon/r100.c:3450:26-27: WARNING opportunity for max() drivers/gpu/drm/radeon/r100.c:2812:23-24: WARNING opportunity for max() Signed-off-by: zhaoxiao --- drivers/gpu/drm/radeon/r100.c | 10 ++ 1 file changed, 2 insertions(+), 8

[PATCH] drm/msm: Remove initialization of static variables

2021-09-06 Thread zhaoxiao
Address the following checkpatch errors: ERROR: do not initialise statics to false FILE: :drivers/gpu/drm/msm/msm_drv.c:21: -static bool reglog = false; FILE: :drivers/gpu/drm/msm/msm_drv.c:31: -bool dumpstate = false; Signed-off-by: zhaoxiao --- drivers/gpu/drm/msm/msm_drv.c | 4 ++-- 1 file

[PATCH v2] drm: msm: adreno_gpu.c: Add and use pr_fmt(fmt)

2021-08-25 Thread zhaoxiao
Use a more common logging style. Signed-off-by: zhaoxiao --- v2:Remove the line: #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt drivers/gpu/drm/msm/adreno/adreno_gpu.c:23:9: warning: 'pr_fmt' macro redefined [-Wmacro-redefined] #define pr_fmt(fmt) KBU

[PATCH] drm: msm: adreno_gpu.c: Add and use pr_fmt(fmt)

2021-08-25 Thread zhaoxiao
Add #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt Signed-off-by: zhaoxiao --- drivers/gpu/drm/msm/adreno/adreno_gpu.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.c b/drivers/gpu/drm/msm/adreno/adreno_g

[PATCH] drm: radeon: r600_dma: Replace cpu_to_le32() by lower_32_bits()

2021-08-13 Thread zhaoxiao
__le32 [usertype] Signed-off-by: zhaoxiao --- drivers/gpu/drm/radeon/r600_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/r600_dma.c b/drivers/gpu/drm/radeon/r600_dma.c index fb65e6fb5c4f..a2d0b1edcd22 100644 --- a/drivers/gpu/drm/radeon

Re: [PATCH v2] drm/drv: Remove initialization of static variables

2021-08-10 Thread zhaoxiao
Thanks for you advice, and I modify the patch according to your suggestions. 在 2021/8/10 下午5:59, Daniel Vetter 写道: On Fri, Aug 06, 2021 at 10:30:47AM +0800, zhaoxiao wrote: Address the following checkpatch errors: ERROR: do not initialise statics to false FILE: :drivers/gpu/drm/msm/msm_drv.c

[PATCH v3] drm/msm: Remove initialization of static variables

2021-08-10 Thread zhaoxiao
Address the following checkpatch errors: ERROR: do not initialise statics to false FILE: :drivers/gpu/drm/msm/msm_drv.c:21: -static bool reglog = false; FILE: :drivers/gpu/drm/msm/msm_drv.c:31: -bool dumpstate = false; Signed-off-by: zhaoxiao --- v3: Subject should start out with drm/msm, not

[PATCH] drm/amd/display: remove variable backlight

2021-08-09 Thread zhaoxiao
The variable backlight is being initialized with a value that is never read, it is being re-assigned immediately afterwards. Clean up the code by removing the need for variable backlight. Signed-off-by: zhaoxiao --- drivers/gpu/drm/amd/display/dc/dce/dce_abm.c | 6 ++ 1 file changed, 2

[PATCH v2] drm/drv: Remove initialization of static variables

2021-08-05 Thread zhaoxiao
Address the following checkpatch errors: ERROR: do not initialise statics to false FILE: :drivers/gpu/drm/msm/msm_drv.c:21: -static bool reglog = false; FILE: :drivers/gpu/drm/msm/msm_drv.c:31: -bool dumpstate = false; Signed-off-by: zhaoxiao --- v2: change the patch description drivers/gpu

[PATCH] drm:This patch fixes the checkpatch.pl error to msm_drv.c

2021-08-01 Thread zhaoxiao
ERROR: do not initialise statics to false Signed-off-by: zhaoxiao --- drivers/gpu/drm/msm/msm_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 9b8fa2ad0d84..d9ca4bc9620b 100644 --- a/drivers/gpu/drm

[PATCH v2] drm:Fixes the following checkpatch error:

2021-08-01 Thread zhaoxiao
ERROR: do not initialise statics to false FILE: :drivers/gpu/drm/msm/msm_drv.c:21: static bool reglog = false; FILE: :drivers/gpu/drm/msm/msm_drv.c:31: -bool dumpstate = false; Signed-off-by: zhaoxiao --- v2: add the more detailed patch description drivers/gpu/drm/msm/msm_drv.c | 4 ++-- 1

[PATCH] drm:This patch fixes the checkpatch.pl error to msm_drv.c

2021-07-29 Thread zhaoxiao
ERROR: do not initialise statics to false Signed-off-by: zhaoxiao --- drivers/gpu/drm/msm/msm_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 9b8fa2ad0d84..d9ca4bc9620b 100644 --- a/drivers/gpu/drm

[PATCH] drivers/gpu/drm/nouveau/nouveau_bo: Remove a bunch of unused variables

2021-07-20 Thread zhaoxiao
/drm/nouveau/nouveau_bo.c: In function ‘nouveau_ttm_tt_unpopulate’: drivers/gpu/drm/nouveau/nouveau_bo.c:1268:17: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable] struct device *dev; ^~~ Signed-off-by: zhaoxiao --- drivers/gpu/drm/nouveau/nouveau_bo.c | 5

[PATCH] drivers/gpu/drm/nouveau/dispnv50/headc57d.c: mark headc57d_olut() as static

2021-07-20 Thread zhaoxiao
this function, so we should mark it as static. Signed-off-by: zhaoxiao --- drivers/gpu/drm/nouveau/dispnv50/headc57d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/dispnv50/headc57d.c b/drivers/gpu/drm/nouveau/dispnv50/headc57d.c index fd51527b56b8

[PATCH] drivers/gpu/drm/nouveau/nouveau_bo: Remove a bunch of unused variables

2021-07-19 Thread zhaoxiao
/drm/nouveau/nouveau_bo.c: In function ‘nouveau_ttm_tt_unpopulate’: drivers/gpu/drm/nouveau/nouveau_bo.c:1268:17: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable] struct device *dev; ^~~ Signed-off-by: zhaoxiao --- drivers/gpu/drm/nouveau/nouveau_bo.c | 5

[PATCH] drivers/gpu/drm/nouveau/dispnv50/headc57d.c: mark headc57d_olut() as static

2021-07-19 Thread zhaoxiao
this function, so we should mark it as static. Signed-off-by: zhaoxiao --- drivers/gpu/drm/nouveau/dispnv50/headc57d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/dispnv50/headc57d.c b/drivers/gpu/drm/nouveau/dispnv50/headc57d.c index fd51527b56b8

[PATCH 2/2] drivers/gpu/drm/i915/display/intel_display_power.c: Repair typo in function name

2021-07-08 Thread zhaoxiao
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/i915/display/intel_display_power.c:2300: warning: expecting prototype for intel_display_power_put_async(). Prototype was for __intel_display_power_put_async() instead Signed-off-by: zhaoxiao --- drivers/gpu/drm/i915/display

[PATCH 1/2] drivers/gpu/drm/i915/gt/intel_engine_cs.c: Repair typo in function name

2021-07-08 Thread zhaoxiao
intel_engines_cleanup_common(). Prototype was for intel_engine_cleanup_common() instead Signed-off-by: zhaoxiao --- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/intel_engine_cs.c b/drivers/gpu/drm/i915/gt