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