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