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

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Uwe Kleine-König and committed by
Helge Deller
bc2e67ac 0872b2c0

+2 -2
+2 -2
drivers/video/fbdev/ssd1307fb.c
··· 399 399 /* Enable the PWM */ 400 400 pwm_enable(par->pwm); 401 401 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)); 404 404 } 405 405 406 406 /* Set initial contrast */