Lines Matching defs:tps
107 struct tps6594 *tps = i2c_get_clientdata(client);
116 if (tps->use_crc) {
145 struct tps6594 *tps = i2c_get_clientdata(client);
154 if (tps->use_crc) {
206 struct tps6594 *tps;
209 tps = devm_kzalloc(dev, sizeof(*tps), GFP_KERNEL);
210 if (!tps)
213 i2c_set_clientdata(client, tps);
215 tps->dev = dev;
216 tps->reg = client->addr;
217 tps->irq = client->irq;
219 tps->regmap = devm_regmap_init(dev, NULL, client, &tps6594_i2c_regmap_config);
220 if (IS_ERR(tps->regmap))
221 return dev_err_probe(dev, PTR_ERR(tps->regmap), "Failed to init regmap\n");
226 tps->chip_id = (unsigned long)match->data;
230 return tps6594_device_init(tps, enable_crc);