]> asedeno.scripts.mit.edu Git - linux.git/commit
reset: Share struct reset_control between reset_control_get calls
authorHans de Goede <hdegoede@redhat.com>
Tue, 23 Feb 2016 17:46:25 +0000 (18:46 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 30 Mar 2016 13:42:03 +0000 (15:42 +0200)
commitc15ddec2ca06076a11195313aa1fce47d2a28c5d
tree43d14741934dc503d0f6840190b0d5406667bed4
parent6c96f05c8bb8bc4177613ef3c23a56b455e75887
reset: Share struct reset_control between reset_control_get calls

Now that struct reset_control no longer stores the device pointer for
the device calling reset_control_get we can share a single struct
reset_control when multiple calls to reset_control_get are made for
the same reset line (same id / index).

This is a preparation patch for adding support for shared reset lines.

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-controller.h