mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 05:34:13 +08:00
regulator: Fixes for v5.18
A couple of fixes for the rt4831 driver which fix features that didn't work due to incomplete description of the register configuration. -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmJERWsACgkQJNaLcl1U h9BF7gf7B+lGxEx+vU/b8RjfH+hxH6kb3/ySQRsYSD3ufcmBcKa0rITU2eA5A0VO Sc+u3Ep+4mQiT/khyqhcS0AVkO9VSfGv0DBgWxYLQfjmOCau9OG2QqJ83+4HiAsl UXMfwZE/HDja312uaUSx2G8TYrRFwzmLSJamO/IjV1TM2YGQtbrPpNmcT/WRDXn5 AsUlB+zQGzJGXa1LlqnVzuiEKDTSkt+1Jmu1d7VndBGFnGRdoGRTBx9AhIcEmH9R PYE7zr1zBTH1qydB+vyduPJ721TOpdOwxAhbC+pzZ23U+P8tPnjFI4frzrxZVB4p 0CoWkWgmgd7PXueXdJYsRkT8CyfKrA== =RaCU -----END PGP SIGNATURE----- Merge tag 'regulator-fix-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator Pull regulator fixes from Mark Brown: "A couple of fixes for the rt4831 driver which fix features that didn't work due to incomplete description of the register configuration" * tag 'regulator-fix-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: regulator: rt4831: Add active_discharge_on to fix discharge API regulator: rt4831: Add bypass mask to fix set_bypass API work
This commit is contained in:
commit
4f3730117f
@ -106,6 +106,7 @@ static const struct regulator_desc rt4831_regulator_descs[] = {
|
||||
.vsel_reg = RT4831_REG_VLCM,
|
||||
.vsel_mask = RT4831_VOLT_MASK,
|
||||
.bypass_reg = RT4831_REG_DSVEN,
|
||||
.bypass_mask = RT4831_DSVMODE_MASK,
|
||||
.bypass_val_on = DSV_MODE_BYPASS,
|
||||
.bypass_val_off = DSV_MODE_NORMAL,
|
||||
.owner = THIS_MODULE,
|
||||
@ -126,6 +127,7 @@ static const struct regulator_desc rt4831_regulator_descs[] = {
|
||||
.enable_mask = RT4831_POSEN_MASK,
|
||||
.active_discharge_reg = RT4831_REG_DSVEN,
|
||||
.active_discharge_mask = RT4831_POSADEN_MASK,
|
||||
.active_discharge_on = RT4831_POSADEN_MASK,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
{
|
||||
@ -144,6 +146,7 @@ static const struct regulator_desc rt4831_regulator_descs[] = {
|
||||
.enable_mask = RT4831_NEGEN_MASK,
|
||||
.active_discharge_reg = RT4831_REG_DSVEN,
|
||||
.active_discharge_mask = RT4831_NEGADEN_MASK,
|
||||
.active_discharge_on = RT4831_NEGADEN_MASK,
|
||||
.owner = THIS_MODULE,
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user