reset: Make [of_]reset_control_get[_foo] functions wrappers
authorHans de Goede <hdegoede@redhat.com>
Tue, 23 Feb 2016 17:46:24 +0000 (18:46 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 30 Mar 2016 13:42:01 +0000 (15:42 +0200)
commit6c96f05c8bb8bc4177613ef3c23a56b455e75887
tree58c17810ceabd3002d2dad81fb693d5f22887b4a
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca
reset: Make [of_]reset_control_get[_foo] functions wrappers

With both the regular, _by_index and _optional variants we already have
quite a few variants of [of_]reset_control_get[_foo], the upcoming
addition of shared reset lines support makes this worse.

This commit changes all the variants into wrappers around common core
functions. For completeness sake this commit also adds a new
devm_get_reset_control_by_index wrapper.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/core.c
include/linux/reset.h