From: Uwe Kleine-König Date: Fri, 28 Jul 2023 14:58:23 +0000 (+0200) Subject: fbdev: ssd1307fb: Print the PWM's label instead of its number X-Git-Tag: v6.6.17~4188^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc2e67ac3eb57a8d4f4d0022616e550aada50e7b;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Javier Martinez Canillas Signed-off-by: Helge Deller --- diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index 11c3737..46881a6 100644 --- a/drivers/video/fbdev/ssd1307fb.c +++ b/drivers/video/fbdev/ssd1307fb.c @@ -399,8 +399,8 @@ static int ssd1307fb_init(struct ssd1307fb_par *par) /* Enable the PWM */ pwm_enable(par->pwm); - dev_dbg(&par->client->dev, "Using PWM%d with a %lluns period.\n", - par->pwm->pwm, pwm_get_period(par->pwm)); + dev_dbg(&par->client->dev, "Using PWM %s with a %lluns period.\n", + par->pwm->label, pwm_get_period(par->pwm)); } /* Set initial contrast */