* [PATCH RESEND] drm/bridge: analogix_dp: Use str_supported_unsupported() helper
@ 2026-11-11 16:42 Thorsten Blum
2026-11-12 7:57 ` Damon Ding
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2026-11-11 16:42 UTC (permalink / raw)
To: Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart,
Jonas Karlman, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter,
Damon Ding, Dmitry Baryshkov, Heiko Stuebner
Cc: Thorsten Blum, dri-devel, linux-kernel
Replace hard-coded strings with the str_supported_unsupported() helper.
This unifies the output and helps the linker with deduplication, which
can result in a smaller binary.
Signed-off-by: Thorsten Blum <blum@kernel.org>
---
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
index 6df6963740d2..59d3ff9bcde4 100644
--- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
+++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
@@ -19,6 +19,7 @@
#include <linux/of.h>
#include <linux/phy/phy.h>
#include <linux/platform_device.h>
+#include <linux/string_choices.h>
#include <drm/bridge/analogix_dp.h>
#include <drm/display/drm_dp_aux_bus.h>
@@ -745,7 +746,7 @@ static int analogix_dp_fast_link_train_detection(struct analogix_dp_device *dp)
}
dp->fast_train_enable = !!(spread & DP_NO_AUX_HANDSHAKE_LINK_TRAINING);
dev_dbg(dp->dev, "fast link training %s\n",
- dp->fast_train_enable ? "supported" : "unsupported");
+ str_supported_unsupported(dp->fast_train_enable));
return 0;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH RESEND] drm/bridge: analogix_dp: Use str_supported_unsupported() helper
2026-11-11 16:42 [PATCH RESEND] drm/bridge: analogix_dp: Use str_supported_unsupported() helper Thorsten Blum
@ 2026-11-12 7:57 ` Damon Ding
0 siblings, 0 replies; 2+ messages in thread
From: Damon Ding @ 2026-11-12 7:57 UTC (permalink / raw)
To: Thorsten Blum, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec, Luca Ceresoli,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Dmitry Baryshkov, Heiko Stuebner
Cc: dri-devel, linux-kernel
Hi Thorsten,
On 11/12/2026 12:42 AM, Thorsten Blum wrote:
> Replace hard-coded strings with the str_supported_unsupported() helper.
> This unifies the output and helps the linker with deduplication, which
> can result in a smaller binary.
>
> Signed-off-by: Thorsten Blum <blum@kernel.org>
> ---
> drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> index 6df6963740d2..59d3ff9bcde4 100644
> --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> @@ -19,6 +19,7 @@
> #include <linux/of.h>
> #include <linux/phy/phy.h>
> #include <linux/platform_device.h>
> +#include <linux/string_choices.h>
>
> #include <drm/bridge/analogix_dp.h>
> #include <drm/display/drm_dp_aux_bus.h>
> @@ -745,7 +746,7 @@ static int analogix_dp_fast_link_train_detection(struct analogix_dp_device *dp)
> }
> dp->fast_train_enable = !!(spread & DP_NO_AUX_HANDSHAKE_LINK_TRAINING);
> dev_dbg(dp->dev, "fast link training %s\n",
> - dp->fast_train_enable ? "supported" : "unsupported");
> + str_supported_unsupported(dp->fast_train_enable));
> return 0;
> }
>
>
>
Reviewed-by: Damon Ding <damon.ding@rock-chips.com>
Best regards,
Damon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-12 7:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-11 16:42 [PATCH RESEND] drm/bridge: analogix_dp: Use str_supported_unsupported() helper Thorsten Blum
2026-11-12 7:57 ` Damon Ding
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox