regulator: core: have _regulator_get() accept get_type argument
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 3 Feb 2017 21:56:02 +0000 (13:56 -0800)
committerMark Brown <broonie@kernel.org>
Sat, 4 Feb 2017 10:31:52 +0000 (11:31 +0100)
commita8bd42a97741aefa5942605fa87418fc8a6c4169
tree1fa5d8f7469d632e3ceed41d8d2687bd35e0f1ab
parent7d245afa24b3ed911f6fd90079d70932ac5e5923
regulator: core: have _regulator_get() accept get_type argument

Instead of separate "exclusive" and "allow_dummy" arguments, that formed 3
valid combinations (normal, exclusive and optional) and an invalid one,
let's accept explicit "get_type", like we did in devm-managed code.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
drivers/regulator/devres.c
drivers/regulator/internal.h