summaryrefslogtreecommitdiff
path: root/include/linux/regulator/consumer.h
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-01-14 15:52:48 +0000
committerMark Brown <broonie@kernel.org>2020-01-14 15:52:48 +0000
commitaa6dcba83177cf5a96a4ab3b206613d42f8e117b (patch)
treed1ab68fdd2274e632d104a84dea28a882a7aa4fd /include/linux/regulator/consumer.h
parent2159a6810e96c38a469c39df8e109edb7232d3c9 (diff)
parentb059b7e0ec3208ff1e17cff6387d75a9fbab4e02 (diff)
downloadlinux-next-aa6dcba83177cf5a96a4ab3b206613d42f8e117b.tar.gz
Merge tag 'regulator-eq' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator into asoc-5.6
regulator: add regulator_equal()
Diffstat (limited to 'include/linux/regulator/consumer.h')
-rw-r--r--include/linux/regulator/consumer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h
index 337a46391527..2c89d886595c 100644
--- a/include/linux/regulator/consumer.h
+++ b/include/linux/regulator/consumer.h
@@ -287,6 +287,8 @@ void regulator_bulk_set_supply_names(struct regulator_bulk_data *consumers,
const char *const *supply_names,
unsigned int num_supplies);
+bool regulator_is_equal(struct regulator *reg1, struct regulator *reg2);
+
#else
/*
@@ -593,6 +595,11 @@ regulator_bulk_set_supply_names(struct regulator_bulk_data *consumers,
{
}
+static inline bool
+regulator_is_equal(struct regulator *reg1, struct regulator *reg2);
+{
+ return false;
+}
#endif
static inline int regulator_set_voltage_triplet(struct regulator *regulator,