mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
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>
This commit is contained in:
parent
0be7b88d66
commit
375c137b91
|
|
@ -450,12 +450,12 @@ static int syr82x_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *
|
|||
config.driver_data = syr82x;
|
||||
if (syr82x->dev->of_node)
|
||||
config.of_node = pdev->of_node[0];
|
||||
if (reg_data && reg_data->constraints.name)
|
||||
rail_name = reg_data->constraints.name;
|
||||
else
|
||||
rail_name = regulators[0].name;
|
||||
reg_data->supply_regulator = rail_name;
|
||||
|
||||
if (reg_data && reg_data->constraints.name)
|
||||
rail_name = reg_data->constraints.name;
|
||||
else
|
||||
rail_name = regulators[0].name;
|
||||
reg_data->supply_regulator = rail_name;
|
||||
|
||||
config.init_data =reg_data;
|
||||
sy_rdev = regulator_register(®ulators[0],&config);
|
||||
if (IS_ERR(sy_rdev)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user