diff options
| author | Graham Williams <graham.williams@linaro.org> | 2014-06-18 15:42:10 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2014-06-22 07:00:14 -0400 |
| commit | 636f4a31e3bb5ff8907d02a8862ee02f8a068084 (patch) | |
| tree | 0afcb1727bf67228bba4423eca00cb304b9a050d | |
| parent | 7171511eaec5bf23fb06078f59784a3a0626b38f (diff) | |
regulator: bcm590xx: fix vbus name
The vbus regulator was not getting its name set. This results
in the sysfs entry being empty. The lack of a bcm590xx_regs[]
table entry also upsets Coverity runs. Add the table entry
so the name gets set properly.
Signed-off-by: Graham Williams <graham.williams@linaro.org>
Acked-by: Matt Porter <mporter@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
| -rw-r--r-- | drivers/regulator/bcm590xx-regulator.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/regulator/bcm590xx-regulator.c b/drivers/regulator/bcm590xx-regulator.c index 57544e254a78..58ece59367ae 100644 --- a/drivers/regulator/bcm590xx-regulator.c +++ b/drivers/regulator/bcm590xx-regulator.c | |||
| @@ -119,6 +119,10 @@ static const unsigned int ldo_c_table[] = { | |||
| 119 | 2900000, 3000000, 3300000, | 119 | 2900000, 3000000, 3300000, |
| 120 | }; | 120 | }; |
| 121 | 121 | ||
| 122 | static const unsigned int ldo_vbus[] = { | ||
| 123 | 5000000, | ||
| 124 | }; | ||
| 125 | |||
| 122 | /* DCDC group CSR: supported voltages in microvolts */ | 126 | /* DCDC group CSR: supported voltages in microvolts */ |
| 123 | static const struct regulator_linear_range dcdc_csr_ranges[] = { | 127 | static const struct regulator_linear_range dcdc_csr_ranges[] = { |
| 124 | REGULATOR_LINEAR_RANGE(860000, 2, 50, 10000), | 128 | REGULATOR_LINEAR_RANGE(860000, 2, 50, 10000), |
| @@ -192,6 +196,7 @@ static struct bcm590xx_info bcm590xx_regs[] = { | |||
| 192 | BCM590XX_REG_TABLE(gpldo4, ldo_a_table), | 196 | BCM590XX_REG_TABLE(gpldo4, ldo_a_table), |
| 193 | BCM590XX_REG_TABLE(gpldo5, ldo_a_table), | 197 | BCM590XX_REG_TABLE(gpldo5, ldo_a_table), |
| 194 | BCM590XX_REG_TABLE(gpldo6, ldo_a_table), | 198 | BCM590XX_REG_TABLE(gpldo6, ldo_a_table), |
| 199 | BCM590XX_REG_TABLE(vbus, ldo_vbus), | ||
| 195 | }; | 200 | }; |
| 196 | 201 | ||
| 197 | struct bcm590xx_reg { | 202 | struct bcm590xx_reg { |
