Skip to content

Commit

Permalink
regulator: rtq2134: Fix coding style
Browse files Browse the repository at this point in the history
Add empty space and put constant number to the right side for 'if' judgement.

Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
Link: https://lore.kernel.org/r/1627648326-5026-1-git-send-email-u0084500@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
ChiYuan Huang authored and Mark Brown committed Jul 30, 2021
1 parent 5e36129 commit 15b4d2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/regulator/rtq2134-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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);
Expand Down

0 comments on commit 15b4d2b

Please sign in to comment.