Skip to content

Commit 84f54d4

Browse files
Uwe Kleine-Königmartinezjavier
authored andcommitted
drm/ssd130x: Print the PWM's label instead of its number
struct pwm_device::pwm is a write-only variable in the pwm core and used nowhere apart from this and another dev_dbg. So it isn't useful to identify the used PWM. Emit the PWM's label instead in the debug message. Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Signed-off-by: Javier Martinez Canillas <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 775b066 commit 84f54d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/solomon/ssd130x.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ static int ssd130x_pwm_enable(struct ssd130x_device *ssd130x)
272272
/* Enable the PWM */
273273
pwm_enable(ssd130x->pwm);
274274

275-
dev_dbg(dev, "Using PWM%d with a %lluns period.\n",
276-
ssd130x->pwm->pwm, pwm_get_period(ssd130x->pwm));
275+
dev_dbg(dev, "Using PWM %s with a %lluns period.\n",
276+
ssd130x->pwm->label, pwm_get_period(ssd130x->pwm));
277277

278278
return 0;
279279
}

0 commit comments

Comments
 (0)