[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1366372554-20866-2-git-send-email-taras@ti.com>
Date: Fri, 19 Apr 2013 14:55:53 +0300
From: Taras Kondratiuk <taras@...com>
To: <lgirdwood@...il.com>, <broonie@...nel.org>, <rjw@...k.pl>,
<viresh.kumar@...aro.org>, <shawn.guo@...aro.org>
CC: <cpufreq@...r.kernel.org>, <linux-pm@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, Taras Kondratiuk <taras@...com>,
Philip Rakity <prakity@...dia.com>,
Eric Miao <eric.y.miao@...il.com>
Subject: [RFC PATCH 1/2] regulator: core: Add regulator_set_voltage_min()
Sometimes it is a need to constrain only a minimum voltage
and let system constraints to limit maximum.
Add a new function regulator_set_voltage_min() for this.
Signed-off-by: Taras Kondratiuk <taras@...com>
---
include/linux/regulator/consumer.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h
index 7bc732c..d40d909 100644
--- a/include/linux/regulator/consumer.h
+++ b/include/linux/regulator/consumer.h
@@ -380,4 +380,10 @@ static inline int regulator_is_supported_voltage_tol(struct regulator *regulator
target_uV + tol_uV);
}
+static inline int regulator_set_voltage_min(struct regulator *regulator,
+ int new_uV)
+{
+ return regulator_set_voltage(regulator, new_uV, INT_MAX);
+}
+
#endif
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists