mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 20:54:10 +08:00
regulator: rtq2134: Fix coding style
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>
This commit is contained in:
parent
5e36129f2b
commit
15b4d2b972
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user