Skip to content

Commit 375c137

Browse files
committed
drivers/regulator/syr82x: fix compile warning
drivers/regulator/syr82x.c:451:3: warning: this if clause does not guard... [-Wmisleading-indentation] Change-Id: Ibdb1f6f903d1e0dece7b58aa3ec89d075e6d5b79 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
1 parent 0be7b88 commit 375c137

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

drivers/regulator/syr82x.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -450,12 +450,12 @@ static int syr82x_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *
450450
config.driver_data = syr82x;
451451
if (syr82x->dev->of_node)
452452
config.of_node = pdev->of_node[0];
453-
if (reg_data && reg_data->constraints.name)
454-
rail_name = reg_data->constraints.name;
455-
else
456-
rail_name = regulators[0].name;
457-
reg_data->supply_regulator = rail_name;
458-
453+
if (reg_data && reg_data->constraints.name)
454+
rail_name = reg_data->constraints.name;
455+
else
456+
rail_name = regulators[0].name;
457+
reg_data->supply_regulator = rail_name;
458+
459459
config.init_data =reg_data;
460460
sy_rdev = regulator_register(&regulators[0],&config);
461461
if (IS_ERR(sy_rdev)) {

0 commit comments

Comments
 (0)