Lines Matching refs:cfg
34 const struct sy8824_config *cfg; member
40 const struct sy8824_config *cfg = di->cfg; in sy8824_set_mode() local
44 regmap_update_bits(rdev->regmap, cfg->mode_reg, in sy8824_set_mode()
48 regmap_update_bits(rdev->regmap, cfg->mode_reg, in sy8824_set_mode()
60 const struct sy8824_config *cfg = di->cfg; in sy8824_get_mode() local
64 ret = regmap_read(rdev->regmap, cfg->mode_reg, &val); in sy8824_get_mode()
90 const struct sy8824_config *cfg = di->cfg; in sy8824_regulator_register() local
97 rdesc->n_voltages = cfg->vsel_count; in sy8824_regulator_register()
98 rdesc->enable_reg = cfg->enable_reg; in sy8824_regulator_register()
100 rdesc->min_uV = cfg->vsel_min; in sy8824_regulator_register()
101 rdesc->uV_step = cfg->vsel_step; in sy8824_regulator_register()
102 rdesc->vsel_reg = cfg->vol_reg; in sy8824_regulator_register()
103 rdesc->vsel_mask = cfg->vsel_count - 1; in sy8824_regulator_register()
135 di->cfg = of_device_get_match_data(dev); in sy8824_i2c_probe()