diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-06-16 19:18:56 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-06-17 00:29:24 +0200 |
commit | 918a06a12ad633a29634f3249990ba04ce9fb00b (patch) | |
tree | ecaa391890d391626a5cf849d08001391926b772 /firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c | |
parent | abb7d1dcfe204da217a67235811ebb278dc8fbe1 (diff) | |
download | rockbox-918a06a12ad633a29634f3249990ba04ce9fb00b.tar.gz rockbox-918a06a12ad633a29634f3249990ba04ce9fb00b.zip |
imx233: normalise pinctrl names
The current pinctrl functions were a mess. Normalise the functions
names to make them shorter and clearer.
Change-Id: Iac6ff84625ef2b7610268e3a5802dc0088de3167
Diffstat (limited to 'firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c')
-rw-r--r-- | firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c | 14 |
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) | |||
30 | { | 30 | { |
31 | if(brightness != 0) | 31 | if(brightness != 0) |
32 | brightness = 32 - (brightness * 32) / 100; | 32 | brightness = 32 - (brightness * 32) / 100; |
33 | imx233_set_gpio_output(1, 28, false); | 33 | imx233_pinctrl_set_gpio(1, 28, false); |
34 | udelay(600); | 34 | udelay(600); |
35 | while(brightness-- > 0) | 35 | while(brightness-- > 0) |
36 | { | 36 | { |
37 | imx233_set_gpio_output(1, 28, false); | 37 | imx233_pinctrl_set_gpio(1, 28, false); |
38 | imx233_set_gpio_output(1, 28, true); | 38 | imx233_pinctrl_set_gpio(1, 28, true); |
39 | } | 39 | } |
40 | } | 40 | } |
41 | 41 | ||
42 | bool _backlight_init(void) | 42 | bool _backlight_init(void) |
43 | { | 43 | { |
44 | imx233_pinctrl_acquire_pin(1, 28, "backlight"); | 44 | imx233_pinctrl_acquire(1, 28, "backlight"); |
45 | imx233_set_pin_function(1, 28, PINCTRL_FUNCTION_GPIO); | 45 | imx233_pinctrl_set_function(1, 28, PINCTRL_FUNCTION_GPIO); |
46 | imx233_set_pin_drive_strength(1, 28, PINCTRL_DRIVE_8mA); | 46 | imx233_pinctrl_set_drive(1, 28, PINCTRL_DRIVE_8mA); |
47 | imx233_enable_gpio_output(1, 28, true); | 47 | imx233_pinctrl_enable_gpio(1, 28, true); |
48 | _backlight_set_brightness(DEFAULT_BRIGHTNESS_SETTING); | 48 | _backlight_set_brightness(DEFAULT_BRIGHTNESS_SETTING); |
49 | return true; | 49 | return true; |
50 | } | 50 | } |