From: Ulf Hansson <ulf.hansson@linaro.org>
Date: Fri, 21 Mar 2014 12:14:11 +0000 (+0100)
Subject: regulator: db8500-prcmu: Set 1.8V as a fixed voltage for vsmps2
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eced9d5e93d560443773b305e897c3698a21f1fa;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git

regulator: db8500-prcmu: Set 1.8V as a fixed voltage for vsmps2

This regulator is used for system IO and is fixed to 1.8V. Let's give
consumers the option to fetch the voltage level.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
---

diff --git a/drivers/regulator/db8500-prcmu.c b/drivers/regulator/db8500-prcmu.c
index 846acf240e48..617c1adca816 100644
--- a/drivers/regulator/db8500-prcmu.c
+++ b/drivers/regulator/db8500-prcmu.c
@@ -263,6 +263,8 @@ dbx500_regulator_info[DB8500_NUM_REGULATORS] = {
 			.ops	= &db8500_regulator_ops,
 			.type	= REGULATOR_VOLTAGE,
 			.owner	= THIS_MODULE,
+			.fixed_uV = 1800000,
+			.n_voltages = 1,
 		},
 		.exclude_from_power_state = true,
 	},