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:
Kumar Gala 2022-07-22 13:43:43 -05:00 committed by Kumar Gala
commit 5eca3922d5

View file

@ -327,7 +327,7 @@ static const struct regulator_driver_api api = {
.ilim_reg = DT_INST_PROP_OR(id, ilim_reg, 0), \
.ilim_mask = DT_INST_PROP_OR(id, ilim_mask, 0), \
.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, \
.current_array = pmic_reg_##id##_cur_limits, \
}; \