From 30f333108ca11d5d27525d4ced545079175f97f9 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 2 Oct 2011 14:44:26 +0000 Subject: [PATCH] fuze+: set backlight brightness to default only when there is not backlight infrastructure git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30636 a1c6a512-1295-4272-9138-f99709370657 --- .../target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c index 0638e30aeb..92f63aebfe 100644 --- a/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c +++ b/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c @@ -42,9 +42,9 @@ bool _backlight_init(void) imx233_set_pin_function(1, 28, PINCTRL_FUNCTION_GPIO); imx233_set_pin_drive_strength(1, 28, PINCTRL_DRIVE_8mA); imx233_enable_gpio_output(1, 28, true); - imx233_set_gpio_output(1, 29, true); - udelay(600); - _backlight_set_brightness(100); + #ifndef HAVE_BACKLIGHT_BRIGHTNESS + _backlight_set_brightness(DEFAULT_BRIGHTNESS_SETTING); + #endif return true; }