mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
drivers/leds/leds-bd2802.c: use gpio_request_one()
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]>
This commit is contained in:
parent
1980bcfa6b
commit
95dafd4753
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue