summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/dm355evm_msp.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-12-01 02:49:07 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2012-01-09 00:37:38 +0100
commit97f2bf519377598fd75ce281e595e3205e0f48f5 (patch)
tree3f6471cfe8fe44fb01e8df0bfe862fe8bb826a9c /drivers/mfd/dm355evm_msp.c
parentmfd: Use gpio_request_one from aat2870-core (diff)
downloadlinux-97f2bf519377598fd75ce281e595e3205e0f48f5.tar.xz
linux-97f2bf519377598fd75ce281e595e3205e0f48f5.zip
mfd: Use gpio_request_one from dm355evm_msp
Use gpio_request_one() instead of multiple gpiolib calls. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/dm355evm_msp.c')
-rw-r--r--drivers/mfd/dm355evm_msp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mfd/dm355evm_msp.c b/drivers/mfd/dm355evm_msp.c
index 8ad88da647b9..7710227d284e 100644
--- a/drivers/mfd/dm355evm_msp.c
+++ b/drivers/mfd/dm355evm_msp.c
@@ -308,8 +308,7 @@ static int add_children(struct i2c_client *client)
for (i = 0; i < ARRAY_SIZE(config_inputs); i++) {
int gpio = dm355evm_msp_gpio.base + config_inputs[i].offset;
- gpio_request(gpio, config_inputs[i].label);
- gpio_direction_input(gpio);
+ gpio_request_one(gpio, GPIOF_IN, config_inputs[i].label);
/* make it easy for userspace to see these */
gpio_export(gpio, false);