diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-05-21 21:47:00 +0200 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2026-05-28 17:19:27 +0200 |
| commit | 285d3055412233f25d9501b348faed11e2d2b0de (patch) | |
| tree | b0efb23e5a52a43f6faebb1857f8d03feee97792 | |
| parent | e6fabde34307c2bbc339c0787c7144a3dbf27f28 (diff) | |
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 <thorsten.blum@linux.dev>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patch.msgid.link/20260521194658.366737-4-thorsten.blum@linux.dev
| -rw-r--r-- | drivers/gpu/drm/tegra/sor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c index de8b2dfc4984..93e5ffd4f206 100644 --- a/drivers/gpu/drm/tegra/sor.c +++ b/drivers/gpu/drm/tegra/sor.c @@ -13,6 +13,7 @@ #include <linux/pm_runtime.h> #include <linux/regulator/consumer.h> #include <linux/reset.h> +#include <linux/string_choices.h> #include <soc/tegra/pmc.h> @@ -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; } |
