Skip to contentSkip to conversation

drm/amd/display: Adjust get_value function with prefix to help in ftrace

PATCH RESEND Applied Leonardo Gomes 2 participants 4 messages May 17, 2025 – May 20, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/2 drm/amd/display: Adjust get_value function with prefix to help in ftrace

Adjust get_value function in hw_hpd.c file to have prefix to help in ftrace, the name change from 'get_value' to 'dal_hw_hpd_get_value'

---
 drivers/gpu/drm/amd/display/dc/gpio/hw_hpd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/gpio/hw_hpd.c +2 -2
index 3f13a744d07d..886dd05b012f 100644
@@ -62,7 +62,7 @@ static void dal_hw_hpd_destroy(
 	*ptr = NULL;
 }
 
-static enum gpio_result get_value(
+static enum gpio_result dal_hw_hpd_get_value(
 	const struct hw_gpio_pin *ptr,
 	uint32_t *value)
 {
@@ -104,7 +104,7 @@ static enum gpio_result set_config(
 static const struct hw_gpio_pin_funcs funcs = {
 	.destroy = dal_hw_hpd_destroy,
 	.open = dal_hw_gpio_open,
-	.get_value = get_value,
+	.get_value = dal_hw_hpd_get_value,
 	.set_value = dal_hw_gpio_set_value,
 	.set_config = set_config,
 	.change_mode = dal_hw_gpio_change_mode,
Signature · 1 line
2.43.0
#1 lore raw

PATCH RESEND 2/2 drm/amd/display: Adjust set_value function with prefix to help in ftrace

Adjust set_value function in hw_hpd.c file to have prefix to help in ftrace, the name change from 'set_value' to 'dal_hw_hpd_set_value'

---
 drivers/gpu/drm/amd/display/dc/gpio/hw_hpd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/gpio/hw_hpd.c +2 -2
index 886dd05b012f..01ec451004f7 100644
@@ -85,7 +85,7 @@ static enum gpio_result dal_hw_hpd_get_value(
 	return dal_hw_gpio_get_value(ptr, value);
 }
 
-static enum gpio_result set_config(
+static enum gpio_result dal_hw_hpd_set_config(
 	struct hw_gpio_pin *ptr,
 	const struct gpio_config_data *config_data)
 {
@@ -106,7 +106,7 @@ static const struct hw_gpio_pin_funcs funcs = {
 	.open = dal_hw_gpio_open,
 	.get_value = dal_hw_hpd_get_value,
 	.set_value = dal_hw_gpio_set_value,
-	.set_config = set_config,
+	.set_config = dal_hw_hpd_set_config,
 	.change_mode = dal_hw_gpio_change_mode,
 	.close = dal_hw_gpio_close,
 };
Signature · 1 line
2.43.0
Applied
#2 lore raw

Re: [PATCH 2/2 RESEND] drm/amd/display: Adjust set_value function with prefix to help in ftrace

Applied the series. Thanks!

Alex

Quoted 37 lines · Leonardo Gomes

Adjust set_value function in hw_hpd.c file to have prefix to help in ftrace, the name change from 'set_value' to 'dal_hw_hpd_set_value'

---
 drivers/gpu/drm/amd/display/dc/gpio/hw_hpd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/gpio/hw_hpd.c +2 -3
index 886dd05b012f..01ec451004f7 100644
@@ -85,7 +85,7 @@ static enum gpio_result dal_hw_hpd_get_value(
        return dal_hw_gpio_get_value(ptr, value);
 }
 
-static enum gpio_result set_config(
+static enum gpio_result dal_hw_hpd_set_config(
        struct hw_gpio_pin *ptr,
        const struct gpio_config_data *config_data)
 {
@@ -106,7 +106,7 @@ static const struct hw_gpio_pin_funcs funcs = {
        .open = dal_hw_gpio_open,
        .get_value = dal_hw_hpd_get_value,
        .set_value = dal_hw_gpio_set_value,
-       .set_config = set_config,
+       .set_config = dal_hw_hpd_set_config,
        .change_mode = dal_hw_gpio_change_mode,
        .close = dal_hw_gpio_close,
 };
--

2.43.0

#3 lore raw

Re: [PATCH 2/2 RESEND] drm/amd/display: Adjust set_value function with prefix to help in ftrace

Glad it worked!

Leonardo Gomes

Quoted 45 lines · On Mon, 19 May 2025 at 11:44 Alex Deucher <[email protected]> wrote:

Applied the series. Thanks!

Alex

Quoted 5 lines · Leonardo Gomes

Adjust set_value function in hw_hpd.c file to have prefix to help in ftrace, the name change from 'set_value' to 'dal_hw_hpd_set_value'

Review

Quoted 8 lines
---
 drivers/gpu/drm/amd/display/dc/gpio/hw_hpd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/amd/display/dc/gpio/hw_hpd.c

Quoted 24 lines

index 886dd05b012f..01ec451004f7 100644

drivers/gpu/drm/amd/display/dc/gpio/hw_hpd.c +2 -3
@@ -85,7 +85,7 @@ static enum gpio_result dal_hw_hpd_get_value(
        return dal_hw_gpio_get_value(ptr, value);
 }
 
-static enum gpio_result set_config(
+static enum gpio_result dal_hw_hpd_set_config(
        struct hw_gpio_pin *ptr,
        const struct gpio_config_data *config_data)
 {
@@ -106,7 +106,7 @@ static const struct hw_gpio_pin_funcs funcs = {
        .open = dal_hw_gpio_open,
        .get_value = dal_hw_hpd_get_value,
        .set_value = dal_hw_gpio_set_value,
-       .set_config = set_config,
+       .set_config = dal_hw_hpd_set_config,
        .change_mode = dal_hw_gpio_change_mode,
        .close = dal_hw_gpio_close,
 };
--

2.43.0