summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c')
-rw-r--r--firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c
index 7f181a9672..efe9268989 100644
--- a/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c
+++ b/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c
@@ -30,21 +30,21 @@ void _backlight_set_brightness(int brightness)
{
if(brightness != 0)
brightness = 32 - (brightness * 32) / 100;
- imx233_set_gpio_output(1, 28, false);
+ imx233_pinctrl_set_gpio(1, 28, false);
udelay(600);
while(brightness-- > 0)
{
- imx233_set_gpio_output(1, 28, false);
- imx233_set_gpio_output(1, 28, true);
+ imx233_pinctrl_set_gpio(1, 28, false);
+ imx233_pinctrl_set_gpio(1, 28, true);
}
}
bool _backlight_init(void)
{
- imx233_pinctrl_acquire_pin(1, 28, "backlight");
- 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_pinctrl_acquire(1, 28, "backlight");
+ imx233_pinctrl_set_function(1, 28, PINCTRL_FUNCTION_GPIO);
+ imx233_pinctrl_set_drive(1, 28, PINCTRL_DRIVE_8mA);
+ imx233_pinctrl_enable_gpio(1, 28, true);
_backlight_set_brightness(DEFAULT_BRIGHTNESS_SETTING);
return true;
}