regulator: rtq2134: Fix coding style
authorChiYuan Huang <cy_huang@richtek.com>
Fri, 30 Jul 2021 12:32:06 +0000 (20:32 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 30 Jul 2021 15:04:42 +0000 (16:04 +0100)
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>
drivers/regulator/rtq2134-regulator.c

index e09419cc27936e923089bcb3ccdc614c277be5fc..f21e3f8b21f23b54393eb5c6dc9ead9e61ced07e 100644 (file)
@@ -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);