]> 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>
Fri, 22 Mar 2013 04:33:30 +0000 (15:33 +1100)
commit789e6b5f08acc683884c1fc16f9206924b192432
tree47fad430bc84e5543057a5d3be2d3f85a59eb834
parentc038207543a090bccac5b8871fa0924b4a33b626
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