Commit 5c92211b authored by Matt Wagantall's avatar Matt Wagantall
Browse files

msm: footswitch: Allow assigning of consumer names to footswitches



regulator_get() expects two arguments: a consumer device pointer and
a regulator name.  For footswitch regulators, users of this API have
usually passed NULL in place of the device pointer, which was treated
like a wildcard for the purposes of matching. Those that passed
pointers received no advantage from it anyway, since it was not
possible to specify consumer device names in the devices-* files using
the macros in footswitch.h.

Improve on this by expanding the footswitch macros to take a consumer
name strings. This allows regulator_get() to find matches using a
stricter criteria that considers the consumer device name and ID,
as well as the regulator name.

Change-Id: I77618007b674480aff031329757b41cc00014478
Signed-off-by: default avatarMatt Wagantall <mattw@codeaurora.org>
parent abe3c9c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment