mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 06:04:44 +01:00
regulator: Fixes for v6.18
A couple of fixes for incorrect device descriptions in the rtq2208 driver. -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmkqE5oACgkQJNaLcl1U h9ByEQf/elFORcnRnri/ZOd+QqtAsO/aUtWeooGtavmayLiQEGESqjs/n0Zjb3fQ Ajo1eUD2h11C+gEY4GTQr2iRG+/wksT5ogRB9B3TlOJ+MiQDkJsoZ4idv2UTeuqV zZueCTBV1Kt5oGVMgMC/4atRLNLackr5xqUkl8AZ2+szDK9MTA/VGhDmU5ao6dTd xgmXbEVGQTvOM8E+jXHEsnnHqyMIbuwXLUoDLVXvoiYww+yMqqvZCMdIqXT8Ue7W vtc0WZmXAZ8h4EUtD/WxVH0aq5qPJEYHy9lWNPRJs9KPdmxZ1O1eAsqEygTs0+fa zCdEKwIANV4cvkegX5Blf2qcv4L6Fg== =/5ra -----END PGP SIGNATURE----- Merge tag 'regulator-fix-v6.18-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator Pull regulator fixes from Mark Brown: "A couple of fixes for incorrect device descriptions in the rtq2208 driver" * tag 'regulator-fix-v6.18-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: regulator: rtq2208: Correct LDO2 logic judgment bits regulator: rtq2208: Correct buck group2 phase mapping logic
This commit is contained in:
commit
82ebd4e320
1 changed files with 3 additions and 3 deletions
|
|
@ -53,7 +53,7 @@
|
|||
#define RTQ2208_MASK_BUCKPH_GROUP1 GENMASK(6, 4)
|
||||
#define RTQ2208_MASK_BUCKPH_GROUP2 GENMASK(2, 0)
|
||||
#define RTQ2208_MASK_LDO2_OPT0 BIT(7)
|
||||
#define RTQ2208_MASK_LDO2_OPT1 BIT(6)
|
||||
#define RTQ2208_MASK_LDO2_OPT1 BIT(7)
|
||||
#define RTQ2208_MASK_LDO1_FIXED BIT(6)
|
||||
|
||||
/* Size */
|
||||
|
|
@ -543,14 +543,14 @@ static int rtq2208_regulator_check(struct device *dev, int *num, int *regulator_
|
|||
|
||||
switch (FIELD_GET(RTQ2208_MASK_BUCKPH_GROUP2, buck_phase)) {
|
||||
case 2:
|
||||
rtq2208_used_table[RTQ2208_BUCK_F] = true;
|
||||
rtq2208_used_table[RTQ2208_BUCK_H] = true;
|
||||
fallthrough;
|
||||
case 1:
|
||||
rtq2208_used_table[RTQ2208_BUCK_E] = true;
|
||||
fallthrough;
|
||||
case 0:
|
||||
case 3:
|
||||
rtq2208_used_table[RTQ2208_BUCK_H] = true;
|
||||
rtq2208_used_table[RTQ2208_BUCK_F] = true;
|
||||
fallthrough;
|
||||
default:
|
||||
rtq2208_used_table[RTQ2208_BUCK_G] = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue