]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-v3020.c: use gpio_request_array()
authorJingoo Han <jg1.han@samsung.com>
Wed, 20 Mar 2013 04:07:54 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Mar 2013 04:23:06 +0000 (15:23 +1100)
commita254c71419892b20e6737c7f63f87432672d72d6
tree63d088dc8d2aac86bcbab88b91880d58f7edfc08
parent5dc94ca71e82ee735ecf21089fc1e010c0373085
drivers/rtc/rtc-v3020.c: use gpio_request_array()

Using gpio_request_array()/gpio_free_array() can make the code simpler
because it can set the direction and initial value in one shot and the for
loop is unnecessary.

Also, struct v3020_gpio is removed, because the struct v3020_gpio is
replaced with struct gpio.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-v3020.c