Lines Matching refs:tps
34 struct tps65912 *tps; in tps65912_spi_probe() local
36 tps = devm_kzalloc(&spi->dev, sizeof(*tps), GFP_KERNEL); in tps65912_spi_probe()
37 if (!tps) in tps65912_spi_probe()
40 spi_set_drvdata(spi, tps); in tps65912_spi_probe()
41 tps->dev = &spi->dev; in tps65912_spi_probe()
42 tps->irq = spi->irq; in tps65912_spi_probe()
44 tps->regmap = devm_regmap_init_spi(spi, &tps65912_regmap_config); in tps65912_spi_probe()
45 if (IS_ERR(tps->regmap)) { in tps65912_spi_probe()
46 dev_err(tps->dev, "Failed to initialize register map\n"); in tps65912_spi_probe()
47 return PTR_ERR(tps->regmap); in tps65912_spi_probe()
50 return tps65912_device_init(tps); in tps65912_spi_probe()
55 struct tps65912 *tps = spi_get_drvdata(spi); in tps65912_spi_remove() local
57 tps65912_device_exit(tps); in tps65912_spi_remove()