drivers: regulator_pmic: Fix compile issue
The regulator-pmic node is a child of the I2C device. When this was converted to i2c_dt_spec that was missed. Also fixed a few minor formatting issues. Signed-off-by: Kumar Gala <galak@kernel.org>
This commit is contained in:
parent
969a361366
commit
5eca3922d5
1 changed files with 3 additions and 3 deletions
|
@ -324,10 +324,10 @@ static const struct regulator_driver_api api = {
|
||||||
.enable_val = DT_INST_PROP(id, enable_val), \
|
.enable_val = DT_INST_PROP(id, enable_val), \
|
||||||
.min_uV = DT_INST_PROP(id, min_uv), \
|
.min_uV = DT_INST_PROP(id, min_uv), \
|
||||||
.max_uV = DT_INST_PROP(id, max_uv), \
|
.max_uV = DT_INST_PROP(id, max_uv), \
|
||||||
.ilim_reg = DT_INST_PROP_OR(id, ilim_reg, 0), \
|
.ilim_reg = DT_INST_PROP_OR(id, ilim_reg, 0), \
|
||||||
.ilim_mask = DT_INST_PROP_OR(id, ilim_mask, 0), \
|
.ilim_mask = DT_INST_PROP_OR(id, ilim_mask, 0), \
|
||||||
.enable_inverted = DT_INST_PROP(id, enable_inverted), \
|
.enable_inverted = DT_INST_PROP(id, enable_inverted), \
|
||||||
.i2c = I2C_DT_SPEC_INST_GET(id), \
|
.i2c = I2C_DT_SPEC_GET(DT_INST_PARENT(id)), \
|
||||||
.voltage_array = pmic_reg_##id##_vol_range, \
|
.voltage_array = pmic_reg_##id##_vol_range, \
|
||||||
.current_array = pmic_reg_##id##_cur_limits, \
|
.current_array = pmic_reg_##id##_cur_limits, \
|
||||||
}; \
|
}; \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue