Lines Matching refs:tps
27 struct tps65912 *tps; in tps65912_i2c_probe() local
29 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65912_i2c_probe()
30 if (!tps) in tps65912_i2c_probe()
33 i2c_set_clientdata(client, tps); in tps65912_i2c_probe()
34 tps->dev = &client->dev; in tps65912_i2c_probe()
35 tps->irq = client->irq; in tps65912_i2c_probe()
37 tps->regmap = devm_regmap_init_i2c(client, &tps65912_regmap_config); in tps65912_i2c_probe()
38 if (IS_ERR(tps->regmap)) { in tps65912_i2c_probe()
39 dev_err(tps->dev, "Failed to initialize register map\n"); in tps65912_i2c_probe()
40 return PTR_ERR(tps->regmap); in tps65912_i2c_probe()
43 return tps65912_device_init(tps); in tps65912_i2c_probe()
48 struct tps65912 *tps = i2c_get_clientdata(client); in tps65912_i2c_remove() local
50 tps65912_device_exit(tps); in tps65912_i2c_remove()