[PATCH] drm/i915:Remove unused parameter in marco.

2024-08-31 Thread He Lugang
The parameter dev_priv is actually not used in macro PORT_ALPM_CTL and PORT_ALPM_LFPS_CTL,so remove it to simplify the code. Signed-off-by: He Lugang --- drivers/gpu/drm/i915/display/intel_alpm.c | 4 ++-- drivers/gpu/drm/i915/display/intel_psr.c | 2 +- drivers/gpu/drm/i915/display

[PATCH] [PATCH RESEND] drm/i915:Remove unused parameter in marco.

2024-09-06 Thread He Lugang
The parameter dev_priv is actually not used in macro PORT_ALPM_CTL and PORT_ALPM_LFPS_CTL,so remove it to simplify the code. Reviewed-by: Jani Nikula Signed-off-by: He Lugang --- drivers/gpu/drm/i915/display/intel_alpm.c | 4 ++-- drivers/gpu/drm/i915/display/intel_psr.c | 2

[PATCH 1/3] drm/xe: use devm_add_action_or_reset() helper

2024-09-06 Thread He Lugang
Use devm_add_action_or_reset() to release resources in case of failure, because the cleanup function will be automatically called. Signed-off-by: He Lugang --- drivers/gpu/drm/xe/xe_gt_freq.c | 2 +- drivers/gpu/drm/xe/xe_gt_sysfs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions

[PATCH 1/3] drm/xe: use devm_add_action_or_reset() helper

2024-09-06 Thread He Lugang
Use devm_add_action_or_reset() to release resources in case of failure, because the cleanup function will be automatically called. Signed-off-by: He Lugang --- drivers/gpu/drm/xe/xe_gt_freq.c | 2 +- drivers/gpu/drm/xe/xe_gt_sysfs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions

[PATCH 2/3] drm/gud: use devm_add_action_or_reset() helper

2024-09-07 Thread He Lugang
Use devm_add_action_or_reset() to release resources in case of failure, because the cleanup function will be automatically called. Signed-off-by: He Lugang --- drivers/gpu/drm/gud/gud_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/gud/gud_drv.c b

[PATCH 3/3] drm/i2c/tda9950: use devm_add_action_or_reset() helper

2024-09-07 Thread He Lugang
Use devm_add_action_or_reset() to release resources in case of failure, because the cleanup function will be automatically called. Signed-off-by: He Lugang --- drivers/gpu/drm/i2c/tda9950.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/i2c

[PATCH v2] drm/xe: use devm_add_action_or_reset() helper

2024-09-11 Thread He Lugang
Use devm_add_action_or_reset() to release resources in case of failure, because the cleanup function will be automatically called. Reviewed-by: Rodrigo Vivi Signed-off-by: He Lugang --- v2:move devm_add_action_or_reset after sysfs_create_files to avoid removing the sysfs files that hadn't

[RESEND PATCH] drm/i915:Remove unused parameter in marco

2024-09-24 Thread He Lugang
The parameter dev_priv is actually not used in macro PORT_ALPM_CTL and PORT_ALPM_LFPS_CTL,so remove it to simplify the code. Reviewed-by: Jani Nikula Signed-off-by: He Lugang --- drivers/gpu/drm/i915/display/intel_alpm.c | 4 ++-- drivers/gpu/drm/i915/display/intel_psr.c | 2

[RESEND PATCH] drm/i2c/tda9950: use devm_add_action_or_reset() helper

2024-09-24 Thread He Lugang
Use devm_add_action_or_reset() to release resources in case of failure, because the cleanup function will be automatically called. Reviewed-by: Dmitry Baryshkov Signed-off-by: He Lugang --- drivers/gpu/drm/i2c/tda9950.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff