[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1627648326-5026-1-git-send-email-u0084500@gmail.com>
Date: Fri, 30 Jul 2021 20:32:06 +0800
From: cy_huang <u0084500@...il.com>
To: broonie@...nel.org
Cc: lgirdwood@...il.com, linux-kernel@...r.kernel.org,
cy_huang@...htek.com
Subject: [PATCH] regulator: rtq2134: Fix coding style
From: ChiYuan Huang <cy_huang@...htek.com>
Add empty space and put constant number to the right side for 'if' judgement.
Signed-off-by: ChiYuan Huang <cy_huang@...htek.com>
---
drivers/regulator/rtq2134-regulator.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/regulator/rtq2134-regulator.c b/drivers/regulator/rtq2134-regulator.c
index e09419c..f21e3f8 100644
--- a/drivers/regulator/rtq2134-regulator.c
+++ b/drivers/regulator/rtq2134-regulator.c
@@ -311,7 +311,7 @@ static const struct rtq2134_regulator_desc rtq2134_regulator_descs[] = {
static bool rtq2134_is_accissible_reg(struct device *dev, unsigned int reg)
{
- if (RTQ2134_REG_IO_CHIPNAME <= reg && reg <= RTQ2134_REG_BUCK3_SLEWCTRL)
+ if (reg >= RTQ2134_REG_IO_CHIPNAME && reg <= RTQ2134_REG_BUCK3_SLEWCTRL)
return true;
return false;
}
@@ -329,7 +329,7 @@ static int rtq2134_probe(struct i2c_client *i2c)
{
struct regmap *regmap;
struct regulator_dev *rdev;
- struct regulator_config regulator_cfg= {};
+ struct regulator_config regulator_cfg = {};
int i;
regmap = devm_regmap_init_i2c(i2c, &rtq2134_regmap_config);
--
2.7.4
Powered by blists - more mailing lists