From: Simon Glass Date: Mon, 12 Jun 2017 12:21:38 +0000 (-0600) Subject: video: simple-panel: Add a little more debugging X-Git-Tag: v2017.09-rc1~214^2~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1a9f3da917cd1d18ceea77ef8ae61221ad2b5550;p=u-boot video: simple-panel: Add a little more debugging Add some debugging to show when the backlight is enabled. Signed-off-by: Simon Glass Acked-by: Anatolij Gustschin Tested-by: Marcel Ziswiler Tested-on: Beaver, Jetson-TK1 --- diff --git a/drivers/video/simple_panel.c b/drivers/video/simple_panel.c index baa95f6a12..c0ce199c6a 100644 --- a/drivers/video/simple_panel.c +++ b/drivers/video/simple_panel.c @@ -25,8 +25,10 @@ static int simple_panel_enable_backlight(struct udevice *dev) struct simple_panel_priv *priv = dev_get_priv(dev); int ret; + debug("%s: start, backlight = '%s'\n", __func__, priv->backlight->name); dm_gpio_set_value(&priv->enable, 1); ret = backlight_enable(priv->backlight); + debug("%s: done, ret = %d\n", __func__, ret); if (ret) return ret;