projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1980bcf
)
drivers/leds/leds-bd2802.c: use gpio_request_one()
author
Axel Lin
<
[email protected]
>
Tue, 10 Jan 2012 23:09:35 +0000
(15:09 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 11 Jan 2012 00:30:49 +0000
(16:30 -0800)
Use gpio_request_one() instead of multiple gpiolib calls.
Signed-off-by: Axel Lin <
[email protected]
>
Cc: Kim Kyuwon <
[email protected]
>
Cc: Richard Purdie <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/leds/leds-bd2802.c
patch
|
blob
|
history
diff --git
a/drivers/leds/leds-bd2802.c
b/drivers/leds/leds-bd2802.c
index 10e40971ffbb56725319961e1765d4ff1cfcc8d7..591cbdf5a0463e99ab91892bfc50b0beeb1c579c 100644
(file)
--- a/
drivers/leds/leds-bd2802.c
+++ b/
drivers/leds/leds-bd2802.c
@@
-688,8
+688,7
@@
static int __devinit bd2802_probe(struct i2c_client *client,
i2c_set_clientdata(client, led);
/* Configure RESET GPIO (L: RESET, H: RESET cancel) */
- gpio_request(pdata->reset_gpio, "RGB_RESETB");
- gpio_direction_output(pdata->reset_gpio, 1);
+ gpio_request_one(pdata->reset_gpio, GPIOF_OUT_INIT_HIGH, "RGB_RESETB");
/* Tacss = min 0.1ms */
udelay(100);