Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 62099abf67a2 ("pwm: Add debugfs interface")
Fixes: 0360a4873372 ("pwm: Mention PWM chip ID in /sys/kernel/debug/pwm")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20251006133525.2457171-2-u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>

authored by

Uwe Kleine-König and committed by
Uwe Kleine-König
5f7ff902 3cf8e558

+1 -1
+1 -1
drivers/pwm/core.c
··· 2696 2696 { 2697 2697 struct pwm_chip *chip = v; 2698 2698 2699 - seq_printf(s, "%s%d: %s/%s, npwm: %d\n", 2699 + seq_printf(s, "%s%u: %s/%s, npwm: %u\n", 2700 2700 (char *)s->private, chip->id, 2701 2701 pwmchip_parent(chip)->bus ? pwmchip_parent(chip)->bus->name : "no-bus", 2702 2702 dev_name(pwmchip_parent(chip)), chip->npwm);