Skip to content

Commit

Permalink
drivers/leds/leds-bd2802.c: use gpio_request_one()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
AxelLin authored and torvalds committed Jan 11, 2012
1 parent 1980bcf commit 95dafd4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/leds/leds-bd2802.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 95dafd4

Please sign in to comment.