Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Axel Lin and committed by
Samuel Ortiz
97f2bf51 aced760d

+1 -2
+1 -2
drivers/mfd/dm355evm_msp.c
··· 308 308 for (i = 0; i < ARRAY_SIZE(config_inputs); i++) { 309 309 int gpio = dm355evm_msp_gpio.base + config_inputs[i].offset; 310 310 311 - gpio_request(gpio, config_inputs[i].label); 312 - gpio_direction_input(gpio); 311 + gpio_request_one(gpio, GPIOF_IN, config_inputs[i].label); 313 312 314 313 /* make it easy for userspace to see these */ 315 314 gpio_export(gpio, false);