Lines Matching refs:parent
83 return rdev_get_dev(rdev)->parent->parent;
89 struct device *parent = to_tps80031_dev(rdev);
96 ret = tps80031_read(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg,
109 struct device *parent = to_tps80031_dev(rdev);
115 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg,
128 struct device *parent = to_tps80031_dev(rdev);
134 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg,
167 struct device *parent = to_tps80031_dev(rdev);
172 ret = tps80031_read(parent, ri->rinfo->volt_id,
180 ret = tps80031_update(parent, ri->rinfo->volt_id,
189 ret = tps80031_update(parent, ri->rinfo->volt_id,
200 struct device *parent = to_tps80031_dev(rdev);
205 ret = tps80031_read(parent, ri->rinfo->volt_id,
216 ret = tps80031_read(parent, ri->rinfo->volt_id,
230 struct device *parent = to_tps80031_dev(rdev);
236 if (((tps80031_get_chip_info(parent) == TPS80031) ||
237 ((tps80031_get_chip_info(parent) == TPS80032) &&
238 (tps80031_get_pmu_version(parent) == 0x0))) &&
254 struct device *parent = to_tps80031_dev(rdev);
259 if (((tps80031_get_chip_info(parent) == TPS80031) ||
260 ((tps80031_get_chip_info(parent) == TPS80032) &&
261 (tps80031_get_pmu_version(parent) == 0x0)))) {
273 struct device *parent = to_tps80031_dev(rdev);
278 ret = tps80031_read(parent, TPS80031_SLAVE_ID2,
285 ret = tps80031_read(parent, TPS80031_SLAVE_ID2,
300 struct device *parent = to_tps80031_dev(rdev);
303 ret = tps80031_set_bits(parent, TPS80031_SLAVE_ID2,
311 ret = tps80031_set_bits(parent, TPS80031_SLAVE_ID2,
324 struct device *parent = to_tps80031_dev(rdev);
328 ret = tps80031_write(parent, TPS80031_SLAVE_ID2,
337 ret = tps80031_clr_bits(parent, TPS80031_SLAVE_ID2,
345 ret = tps80031_clr_bits(parent, TPS80031_SLAVE_ID2,
355 ret = tps80031_write(parent, TPS80031_SLAVE_ID2,
492 static int tps80031_power_req_config(struct device *parent,
501 ret = tps80031_ext_power_req_config(parent, ri->ext_ctrl_flag,
511 ret = tps80031_update(parent, TPS80031_SLAVE_ID1,
523 static int tps80031_regulator_config(struct device *parent,
540 ret = tps80031_update(parent, TPS80031_SLAVE_ID1,
553 ret = tps80031_update(parent, TPS80031_SLAVE_ID1,
574 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->trans_reg,
586 static int check_smps_mode_mult(struct device *parent,
594 ret = tps80031_read(parent, TPS80031_SLAVE_ID1,
597 dev_err(parent, "Error in reading smps offset register\n");
601 ret = tps80031_read(parent, TPS80031_SLAVE_ID1,
604 dev_err(parent, "Error in reading smps mult register\n");
669 struct tps80031 *tps80031_mfd = dev_get_drvdata(pdev->dev.parent);
673 pdata = dev_get_platdata(pdev->dev.parent);
691 check_smps_mode_mult(pdev->dev.parent, ri);
701 ret = tps80031_regulator_config(pdev->dev.parent,
709 ret = tps80031_power_req_config(pdev->dev.parent,