]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: pxa: magician: Add debug message for backlight brightness function
authorPetr Cvek <petr.cvek@tul.cz>
Mon, 28 Sep 2015 21:40:44 +0000 (23:40 +0200)
committerRobert Jarzmik <robert.jarzmik@free.fr>
Wed, 14 Oct 2015 21:06:59 +0000 (23:06 +0200)
Add a debug message for the backlight brightness function.

Signed-off-by: Petr Cvek <petr.cvek@tul.cz>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
arch/arm/mach-pxa/magician.c

index 8929ba588bc980d4d32efcb54cbf2504a8d023ee..c32d760f81003fbf02dfe018f0dba1c63c7ac113 100644 (file)
@@ -358,6 +358,7 @@ static int magician_backlight_init(struct device *dev)
 
 static int magician_backlight_notify(struct device *dev, int brightness)
 {
+       pr_debug("Brightness = %i\n", brightness);
        gpio_set_value(EGPIO_MAGICIAN_BL_POWER, brightness);
        if (brightness >= 200) {
                gpio_set_value(EGPIO_MAGICIAN_BL_POWER2, 1);