Lines Matching refs:cs35l45
18 struct cs35l45_private *cs35l45; in cs35l45_spi_probe() local
22 cs35l45 = devm_kzalloc(dev, sizeof(struct cs35l45_private), GFP_KERNEL); in cs35l45_spi_probe()
23 if (cs35l45 == NULL) in cs35l45_spi_probe()
29 spi_set_drvdata(spi, cs35l45); in cs35l45_spi_probe()
30 cs35l45->regmap = devm_regmap_init_spi(spi, &cs35l45_spi_regmap); in cs35l45_spi_probe()
31 if (IS_ERR(cs35l45->regmap)) { in cs35l45_spi_probe()
32 ret = PTR_ERR(cs35l45->regmap); in cs35l45_spi_probe()
37 cs35l45->dev = dev; in cs35l45_spi_probe()
38 cs35l45->irq = spi->irq; in cs35l45_spi_probe()
39 cs35l45->bus_type = CONTROL_BUS_SPI; in cs35l45_spi_probe()
41 return cs35l45_probe(cs35l45); in cs35l45_spi_probe()
46 struct cs35l45_private *cs35l45 = spi_get_drvdata(spi); in cs35l45_spi_remove() local
48 cs35l45_remove(cs35l45); in cs35l45_spi_remove()