]> 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>
Tue, 26 Mar 2013 23:25:15 +0000 (10:25 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:34 +0000 (17:12 +1100)
commit8a79684f02f17a3eaeece4841fa0766934ade0cb
treed320adbe3ffc99b2b25bb7dbb76ea89682007ec7
parent77b7d4e7646935563158ac752fca9c52bd12fa75
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