Lines Matching refs:tps
35 struct tps65912 *tps; in tps65912_i2c_probe() local
37 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65912_i2c_probe()
38 if (!tps) in tps65912_i2c_probe()
41 i2c_set_clientdata(client, tps); in tps65912_i2c_probe()
42 tps->dev = &client->dev; in tps65912_i2c_probe()
43 tps->irq = client->irq; in tps65912_i2c_probe()
45 tps->regmap = devm_regmap_init_i2c(client, &tps65912_regmap_config); in tps65912_i2c_probe()
46 if (IS_ERR(tps->regmap)) { in tps65912_i2c_probe()
47 dev_err(tps->dev, "Failed to initialize register map\n"); in tps65912_i2c_probe()
48 return PTR_ERR(tps->regmap); in tps65912_i2c_probe()
51 return tps65912_device_init(tps); in tps65912_i2c_probe()
56 struct tps65912 *tps = i2c_get_clientdata(client); in tps65912_i2c_remove() local
58 tps65912_device_exit(tps); in tps65912_i2c_remove()