]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pwm: Simplify printf to emit chip->npwm in $debugfs/pwm
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Fri, 26 Sep 2025 16:57:03 +0000 (18:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:00 +0000 (14:03 +0100)
commita2fb63bc252a8c580cae4d1430bafdc779ab1239
treee67232eee71dc29e71ec5b26bf191b55f8d59af5
parent13dcd6308cb8f67134ee5d5d762b2a66363c695b
pwm: Simplify printf to emit chip->npwm in $debugfs/pwm

[ Upstream commit 3cf8e55894b51c14f8500cae5e68ed48b1b0f3fd ]

Instead of caring to correctly pluralize "PWM device(s)" using

(chip->npwm != 1) ? "s" : ""

or

str_plural(chip->npwm)

just simplify the format to not need a plural-s.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20250926165702.321514-2-u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Stable-dep-of: 5f7ff902e7f3 ("pwm: Use %u to printf unsigned int pwm_chip::npwm and pwm_chip::id")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pwm/core.c