[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1648171577-9663-2-git-send-email-u0084500@gmail.com>
Date: Fri, 25 Mar 2022 09:26:16 +0800
From: cy_huang <u0084500@...il.com>
To: broonie@...nel.org
Cc: lgirdwood@...il.com, lucas_tsai@...htek.com,
linux-kernel@...r.kernel.org, ChiYuan Huang <cy_huang@...htek.com>
Subject: [PATCH 1/2] regulator: rt4831: Add bypass mask to fix set_bypass API work
From: ChiYuan Huang <cy_huang@...htek.com>
To use set/get_bypass helper function, bypass mask need to be specified.
Signed-off-by: ChiYuan Huang <cy_huang@...htek.com>
---
drivers/regulator/rt4831-regulator.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/regulator/rt4831-regulator.c b/drivers/regulator/rt4831-regulator.c
index 676b041..8d24b5f 100644
--- a/drivers/regulator/rt4831-regulator.c
+++ b/drivers/regulator/rt4831-regulator.c
@@ -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,
--
2.7.4
Powered by blists - more mailing lists