Commit 5f7ff902 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Uwe Kleine-König
Browse files

pwm: Use %u to printf unsigned int pwm_chip::npwm and pwm_chip::id



%u is the right conversion specifier to emit an unsigned int value.

Fixes: 62099abf ("pwm: Add debugfs interface")
Fixes: 0360a487 ("pwm: Mention PWM chip ID in /sys/kernel/debug/pwm")
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20251006133525.2457171-2-u.kleine-koenig@baylibre.com


Signed-off-by: default avatarUwe Kleine-König <ukleinek@kernel.org>
parent 3cf8e558
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2696,7 +2696,7 @@ static int pwm_seq_show(struct seq_file *s, void *v)
{
	struct pwm_chip *chip = v;

	seq_printf(s, "%s%d: %s/%s, npwm: %d\n",
	seq_printf(s, "%s%u: %s/%s, npwm: %u\n",
		   (char *)s->private, chip->id,
		   pwmchip_parent(chip)->bus ? pwmchip_parent(chip)->bus->name : "no-bus",
		   dev_name(pwmchip_parent(chip)), chip->npwm);