From: Thorsten Blum Date: Thu, 21 May 2026 19:47:00 +0000 (+0200) Subject: drm/tegra: sor: use str_plural in tegra_sor_dp_link_configure X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=285d3055412233f25d9501b348faed11e2d2b0de;p=thirdparty%2Flinux.git drm/tegra: sor: use str_plural in tegra_sor_dp_link_configure Replace the manual ternary "s" pluralization with str_plural() to simplify the code. Signed-off-by: Thorsten Blum Signed-off-by: Thierry Reding Link: https://patch.msgid.link/20260521194658.366737-4-thorsten.blum@linux.dev --- diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c index de8b2dfc4984c..93e5ffd4f206b 100644 --- a/drivers/gpu/drm/tegra/sor.c +++ b/drivers/gpu/drm/tegra/sor.c @@ -13,6 +13,7 @@ #include #include #include +#include #include @@ -940,7 +941,7 @@ static int tegra_sor_dp_link_configure(struct drm_dp_link *link) err = tegra_sor_power_up_lanes(sor, lanes); if (err < 0) { dev_err(sor->dev, "failed to power up %u lane%s: %d\n", - lanes, (lanes != 1) ? "s" : "", err); + lanes, str_plural(lanes), err); return err; }