Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030255Ab3DSMB7 (ORCPT ); Fri, 19 Apr 2013 08:01:59 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:51019 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030191Ab3DSMB4 (ORCPT ); Fri, 19 Apr 2013 08:01:56 -0400 From: Taras Kondratiuk To: , , , , CC: , , , Taras Kondratiuk , Philip Rakity , Eric Miao Subject: [RFC PATCH 1/2] regulator: core: Add regulator_set_voltage_min() Date: Fri, 19 Apr 2013 14:55:53 +0300 Message-ID: <1366372554-20866-2-git-send-email-taras@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1366372554-20866-1-git-send-email-taras@ti.com> References: <1366372554-20866-1-git-send-email-taras@ti.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1064 Lines: 32 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 --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/