]> 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>
Thu, 21 Mar 2013 05:34:08 +0000 (16:34 +1100)
commit2d79eaa77c5eb2eb0f6b449218f7f607e0dda030
treee2736596c1a711feddf4b103a905545bde7470d8
parenta3c88dd2b00d3e88f27632ec0c2a92a8141aada2
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