]> 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>
Sun, 10 Mar 2013 10:54:58 +0000 (21:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 12 Mar 2013 03:56:38 +0000 (14:56 +1100)
commit3518808eb6fc8819f1ddc8c2dd9361c213a15bd4
tree4a409340187d20988a174e535208367d6d56492f
parent170205ad82f67d8a6d3787a9422235e7ec43c0fa
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