summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/creative-zenxfi2/backlight-zenxfi2.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233/creative-zenxfi2/backlight-zenxfi2.c')
-rw-r--r--firmware/target/arm/imx233/creative-zenxfi2/backlight-zenxfi2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/imx233/creative-zenxfi2/backlight-zenxfi2.c b/firmware/target/arm/imx233/creative-zenxfi2/backlight-zenxfi2.c
index 8fcdd8ba32..3322098fa2 100644
--- a/firmware/target/arm/imx233/creative-zenxfi2/backlight-zenxfi2.c
+++ b/firmware/target/arm/imx233/creative-zenxfi2/backlight-zenxfi2.c
@@ -28,9 +28,9 @@
void _backlight_set_brightness(int brightness)
{
- imx233_pwm_setup_channel(4, 1024, HW_PWM_PERIODx__CDIV__DIV_1,
- 0, HW_PWM_PERIODx__STATE__HIGH,
- (brightness * 1024) / 100, HW_PWM_PERIODx__STATE__LOW);
+ imx233_pwm_setup_channel(4, 1024, BV_PWM_PERIODn_CDIV__DIV_1,
+ 0, BV_PWM_PERIODn_ACTIVE_STATE__1,
+ (brightness * 1024) / 100, BV_PWM_PERIODn_INACTIVE_STATE__0);
imx233_pwm_enable_channel(4, true);
}