regulator: Fixes for 3.5
A few small, driver specific bug fixes, nothing exciting here but all needed if you happen to be using the affected hardware. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAABAgAGBQJP5Z4aAAoJEBus8iNuMP3djL4QAJ0xp5LSM802TJZtXg5yGX56 mwa+CTy5/m1JgzGxyYVGYYljPXorBx4lroTNFvbK9H0395e7T7AomeUwc9kU6dAe eTcchIlbIGFuVuIZ21M5hlTlEyjasQUfKm5oc/cpx4rzF1xyejeviTQbiOVx4Ic5 +4guT1/RJaij1C7gi9bpCXCJ3zItCgVSiRA6pnDdxRdlRxLXsOnRIWFnItqv8IBP IopUrSJJMBb0j5WsZcDmMlau/wUku8IPixZNkEzP+1si1FD2Hi+B/1TJTkeiIUeR ws+UK22E1vCDE67dFWFYri50QBRtJWnlxZBPuWyxu266WhJb6dacArxgUHvBN3Ok 4EyrG2E7PMzid4hw93hoP8BZ5GDxwdDlWEgy/Sfb0yjsbZHrODbVkUiCcN63f9g7 tEnsUoLRojPJOcq+tdvQSgXlWiETPPZVWzNmqULsdS4YmhY1pAXDOR9bqG834q37 ozXaweQgV2YJw9vYApmK7p++7Pr6tlfYk25mfd9baMEpHNoCZj/8zs4uEdcH9UDt AmJGWFPC11Kt7UvHmkgeGI6DjwAAH1qzDsTC3FiuOO624LJ/9iUaPRC3XyFzLy4d FiVOoLoA2FywSoyNcdJYbLRF4qaemzBpPKObJQngTzSuVxBEqRarxH39H5i5ykni P/M/7SH9XXuuDmwrphNJ =vzG1 -----END PGP SIGNATURE----- Merge tag 'regulator-3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator Pull regulator fixes from Mark Brown: "A few small, driver specific bug fixes, nothing exciting here but all needed if you happen to be using the affected hardware." * tag 'regulator-3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: regulator: palmas: fix regmap offsets for enable/disable regulator: tps6524x: Fix get_voltage_sel for fixed voltage regulator: tps65023: Fix mask for LDOs output voltage select control
This commit is contained in:
Коммит
bbcaf41118
|
@ -673,7 +673,9 @@ static __devinit int palmas_probe(struct platform_device *pdev)
|
|||
pmic->desc[id].ops = &palmas_ops_smps10;
|
||||
pmic->desc[id].vsel_reg = PALMAS_SMPS10_CTRL;
|
||||
pmic->desc[id].vsel_mask = SMPS10_VSEL;
|
||||
pmic->desc[id].enable_reg = PALMAS_SMPS10_STATUS;
|
||||
pmic->desc[id].enable_reg =
|
||||
PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE,
|
||||
PALMAS_SMPS10_STATUS);
|
||||
pmic->desc[id].enable_mask = SMPS10_BOOST_EN;
|
||||
}
|
||||
|
||||
|
@ -739,7 +741,8 @@ static __devinit int palmas_probe(struct platform_device *pdev)
|
|||
|
||||
pmic->desc[id].type = REGULATOR_VOLTAGE;
|
||||
pmic->desc[id].owner = THIS_MODULE;
|
||||
pmic->desc[id].enable_reg = palmas_regs_info[id].ctrl_addr;
|
||||
pmic->desc[id].enable_reg = PALMAS_BASE_TO_REG(PALMAS_LDO_BASE,
|
||||
palmas_regs_info[id].ctrl_addr);
|
||||
pmic->desc[id].enable_mask = PALMAS_LDO1_CTRL_MODE_ACTIVE;
|
||||
|
||||
if (pdata && pdata->reg_data)
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
|
||||
/* LDO_CTRL bitfields */
|
||||
#define TPS65023_LDO_CTRL_LDOx_SHIFT(ldo_id) ((ldo_id)*4)
|
||||
#define TPS65023_LDO_CTRL_LDOx_MASK(ldo_id) (0x0F << ((ldo_id)*4))
|
||||
#define TPS65023_LDO_CTRL_LDOx_MASK(ldo_id) (0x07 << ((ldo_id)*4))
|
||||
|
||||
/* Number of step-down converters available */
|
||||
#define TPS65023_NUM_DCDC 3
|
||||
|
|
|
@ -482,7 +482,7 @@ static int get_voltage_sel(struct regulator_dev *rdev)
|
|||
info = &supply_info[rdev_get_id(rdev)];
|
||||
|
||||
if (info->flags & FIXED_VOLTAGE)
|
||||
return info->fixed_voltage;
|
||||
return 0;
|
||||
|
||||
ret = read_field(hw, &info->voltage);
|
||||
if (ret < 0)
|
||||
|
|
Загрузка…
Ссылка в новой задаче