public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] leds: bd2802: Use gpio_request_one()
@ 2011-12-01  8:37 Axel Lin
  2011-12-01  8:38 ` [PATCH 2/2] leds: netxbig: " Axel Lin
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2011-12-01  8:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: Kim Kyuwon, Andrew Morton, Richard Purdie

Use gpio_request_one() instead of multiple gpiolib calls.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/leds/leds-bd2802.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/leds/leds-bd2802.c b/drivers/leds/leds-bd2802.c
index 10e40971..591cbdf 100644
--- 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);
-- 
1.7.5.4




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-01  8:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-01  8:37 [PATCH 1/2] leds: bd2802: Use gpio_request_one() Axel Lin
2011-12-01  8:38 ` [PATCH 2/2] leds: netxbig: " Axel Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox