linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] regulator/fixed: set constraints.apply_uV to 0
@ 2011-12-30  6:06 Richard Zhao
  2011-12-30 10:30 ` Mark Brown
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Richard Zhao @ 2011-12-30  6:06 UTC (permalink / raw)
  To: linux-arm-kernel

From: Richard Zhao <richard.zhao@freescale.com>

Fix fixed regulator failed to call regulator_register.

Fixed regulator does not support set voltage operation, so we
don't need apply_uV.

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
---
 drivers/regulator/fixed.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c
index a44a017..fa0c426 100644
--- a/drivers/regulator/fixed.c
+++ b/drivers/regulator/fixed.c
@@ -69,6 +69,7 @@ of_get_fixed_voltage_config(struct device *dev)
 		return NULL;
 
 	init_data = config->init_data;
+	init_data->constraints.apply_uV = 0;
 
 	config->supply_name = init_data->constraints.name;
 	if (init_data->constraints.min_uV == init_data->constraints.max_uV) {
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2012-01-06 19:01 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-30  6:06 [PATCH 1/1] regulator/fixed: set constraints.apply_uV to 0 Richard Zhao
2011-12-30 10:30 ` Mark Brown
2011-12-30 10:38   ` Richard Zhao
2011-12-30 10:48     ` Mark Brown
2011-12-30 11:08       ` Richard Zhao
2011-12-31  1:02         ` Mark Brown
2011-12-31  1:26           ` Richard Zhao
2011-12-31 21:59             ` Mark Brown
2012-01-02 13:46               ` Richard Zhao
2012-01-02 14:39                 ` Mark Brown
2012-01-04  2:47                   ` Richard Zhao
2011-12-31 12:51 ` [PATCH 1/1] regulator/fixed: pass regulator_register of_node Richard Zhao
2012-01-02 12:46   ` Mark Brown
2012-01-02 13:22     ` Richard Zhao
2012-01-04  3:07 ` [PATCH v2 1/1] regulator: set constraints.apply_uV to 0 in of_get_fixed_voltage_config Richard Zhao
2012-01-06  9:51   ` Richard Zhao
2012-01-06 18:43     ` Mark Brown
2012-01-06 19:01   ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).