Skip to content

Commit bc2e67a

Browse files
Uwe Kleine-Könighdeller
authored andcommitted
fbdev: ssd1307fb: 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 <u.kleine-koenig@pengutronix.de> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 0872b2c commit bc2e67a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/video/fbdev/ssd1307fb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,8 @@ static int ssd1307fb_init(struct ssd1307fb_par *par)
399399
/* Enable the PWM */
400400
pwm_enable(par->pwm);
401401

402-
dev_dbg(&par->client->dev, "Using PWM%d with a %lluns period.\n",
403-
par->pwm->pwm, pwm_get_period(par->pwm));
402+
dev_dbg(&par->client->dev, "Using PWM %s with a %lluns period.\n",
403+
par->pwm->label, pwm_get_period(par->pwm));
404404
}
405405

406406
/* Set initial contrast */

0 commit comments

Comments
 (0)