Lines Matching refs:cs35l41
34 struct cs35l41_private *cs35l41; in cs35l41_spi_probe() local
37 cs35l41 = devm_kzalloc(&spi->dev, sizeof(struct cs35l41_private), GFP_KERNEL); in cs35l41_spi_probe()
38 if (!cs35l41) in cs35l41_spi_probe()
44 spi_set_drvdata(spi, cs35l41); in cs35l41_spi_probe()
45 cs35l41->regmap = devm_regmap_init_spi(spi, regmap_config); in cs35l41_spi_probe()
46 if (IS_ERR(cs35l41->regmap)) { in cs35l41_spi_probe()
47 ret = PTR_ERR(cs35l41->regmap); in cs35l41_spi_probe()
52 cs35l41->dev = &spi->dev; in cs35l41_spi_probe()
53 cs35l41->irq = spi->irq; in cs35l41_spi_probe()
55 return cs35l41_probe(cs35l41, hw_cfg); in cs35l41_spi_probe()
60 struct cs35l41_private *cs35l41 = spi_get_drvdata(spi); in cs35l41_spi_remove() local
62 cs35l41_remove(cs35l41); in cs35l41_spi_remove()