Lines Matching refs:di
40 struct sy8824_device_info *di = rdev_get_drvdata(rdev); in sy8824_set_mode() local
41 const struct sy8824_config *cfg = di->cfg; in sy8824_set_mode()
60 struct sy8824_device_info *di = rdev_get_drvdata(rdev); in sy8824_get_mode() local
61 const struct sy8824_config *cfg = di->cfg; in sy8824_get_mode()
87 static int sy8824_regulator_register(struct sy8824_device_info *di, in sy8824_regulator_register() argument
90 struct regulator_desc *rdesc = &di->desc; in sy8824_regulator_register()
91 const struct sy8824_config *cfg = di->cfg; in sy8824_regulator_register()
107 rdev = devm_regulator_register(di->dev, &di->desc, config); in sy8824_regulator_register()
129 struct sy8824_device_info *di; in sy8824_i2c_probe() local
134 di = devm_kzalloc(dev, sizeof(struct sy8824_device_info), GFP_KERNEL); in sy8824_i2c_probe()
135 if (!di) in sy8824_i2c_probe()
138 di->regulator = of_get_regulator_init_data(dev, np, &di->desc); in sy8824_i2c_probe()
139 if (!di->regulator) { in sy8824_i2c_probe()
144 di->dev = dev; in sy8824_i2c_probe()
145 di->cfg = of_device_get_match_data(dev); in sy8824_i2c_probe()
147 regmap = devm_regmap_init_i2c(client, di->cfg->config); in sy8824_i2c_probe()
152 i2c_set_clientdata(client, di); in sy8824_i2c_probe()
154 config.dev = di->dev; in sy8824_i2c_probe()
155 config.init_data = di->regulator; in sy8824_i2c_probe()
157 config.driver_data = di; in sy8824_i2c_probe()
160 ret = sy8824_regulator_register(di, &config); in sy8824_i2c_probe()