Lines Matching refs:tps
26 struct tps65912 *tps; in tps65912_i2c_probe() local
28 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65912_i2c_probe()
29 if (!tps) in tps65912_i2c_probe()
32 i2c_set_clientdata(client, tps); in tps65912_i2c_probe()
33 tps->dev = &client->dev; in tps65912_i2c_probe()
34 tps->irq = client->irq; in tps65912_i2c_probe()
36 tps->regmap = devm_regmap_init_i2c(client, &tps65912_regmap_config); in tps65912_i2c_probe()
37 if (IS_ERR(tps->regmap)) { in tps65912_i2c_probe()
38 dev_err(tps->dev, "Failed to initialize register map\n"); in tps65912_i2c_probe()
39 return PTR_ERR(tps->regmap); in tps65912_i2c_probe()
42 return tps65912_device_init(tps); in tps65912_i2c_probe()
47 struct tps65912 *tps = i2c_get_clientdata(client); in tps65912_i2c_remove() local
49 tps65912_device_exit(tps); in tps65912_i2c_remove()