mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-24 05:02:27 -04:00
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:62099abf67("pwm: Add debugfs interface") Fixes:0360a48733("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>
This commit is contained in:
committed by
Uwe Kleine-König
parent
3cf8e55894
commit
5f7ff902e7
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user