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:
61485c6
)
mfd: Use gpio_request_one from aat2870-core
author
Axel Lin
<
[email protected]
>
Thu, 1 Dec 2011 01:47:54 +0000
(09:47 +0800)
committer
Samuel Ortiz
<
[email protected]
>
Sun, 8 Jan 2012 23:37:37 +0000
(
00:37
+0100)
Use gpio_request_one() instead of multiple gpiolib calls.
Signed-off-by: Axel Lin <
[email protected]
>
Acked-by: Jin Park <
[email protected]
>
Signed-off-by: Samuel Ortiz <
[email protected]
>
drivers/mfd/aat2870-core.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/aat2870-core.c
b/drivers/mfd/aat2870-core.c
index 02c42015ba5108344c46cd29986d30e64e5cd304..762061712db6da4df44d5dc99b0e1c4356da779b 100644
(file)
--- a/
drivers/mfd/aat2870-core.c
+++ b/
drivers/mfd/aat2870-core.c
@@
-407,13
+407,13
@@
static int aat2870_i2c_probe(struct i2c_client *client,
aat2870->init(aat2870);
if (aat2870->en_pin >= 0) {
- ret = gpio_request(aat2870->en_pin, "aat2870-en");
+ ret = gpio_request_one(aat2870->en_pin, GPIOF_OUT_INIT_HIGH,
+ "aat2870-en");
if (ret < 0) {
dev_err(&client->dev,
"Failed to request GPIO %d\n", aat2870->en_pin);
goto out_kfree;
}
- gpio_direction_output(aat2870->en_pin, 1);
}
aat2870_enable(aat2870);