diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-07-28 16:58:22 +0200 |
---|---|---|
committer | Javier Martinez Canillas <javierm@redhat.com> | 2023-09-09 16:14:15 +0200 |
commit | 84f54d4966f48ef88c8db3f524a59f5bc661bc33 (patch) | |
tree | d762ef255bb24da40e5c458873bfb5f7bedc9e15 /drivers/gpu/drm/solomon | |
parent | 775b0669e19f2e4ad979e38330b7d23c2405cadd (diff) | |
download | linux-84f54d4966f48ef88c8db3f524a59f5bc661bc33.tar.gz linux-84f54d4966f48ef88c8db3f524a59f5bc661bc33.tar.bz2 linux-84f54d4966f48ef88c8db3f524a59f5bc661bc33.zip |
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 <u.kleine-koenig@pengutronix.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230728145824.616687-2-u.kleine-koenig@pengutronix.de
Diffstat (limited to 'drivers/gpu/drm/solomon')
-rw-r--r-- | drivers/gpu/drm/solomon/ssd130x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/solomon/ssd130x.c b/drivers/gpu/drm/solomon/ssd130x.c index 5a80b228d18c..c8860718ffb5 100644 --- a/drivers/gpu/drm/solomon/ssd130x.c +++ b/drivers/gpu/drm/solomon/ssd130x.c @@ -272,8 +272,8 @@ static int ssd130x_pwm_enable(struct ssd130x_device *ssd130x) /* Enable the PWM */ pwm_enable(ssd130x->pwm); - dev_dbg(dev, "Using PWM%d with a %lluns period.\n", - ssd130x->pwm->pwm, pwm_get_period(ssd130x->pwm)); + dev_dbg(dev, "Using PWM %s with a %lluns period.\n", + ssd130x->pwm->label, pwm_get_period(ssd130x->pwm)); return 0; } |