Lines Matching full:cs35l45
3 // cs35l45-spi.c -- CS35L45 SPI driver
14 #include "cs35l45.h"
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()
26 spi_set_drvdata(spi, cs35l45); in cs35l45_spi_probe()
27 cs35l45->regmap = devm_regmap_init_spi(spi, &cs35l45_spi_regmap); in cs35l45_spi_probe()
28 if (IS_ERR(cs35l45->regmap)) { in cs35l45_spi_probe()
29 ret = PTR_ERR(cs35l45->regmap); in cs35l45_spi_probe()
34 cs35l45->dev = dev; in cs35l45_spi_probe()
36 return cs35l45_probe(cs35l45); in cs35l45_spi_probe()
41 struct cs35l45_private *cs35l45 = spi_get_drvdata(spi); in cs35l45_spi_remove() local
43 cs35l45_remove(cs35l45); in cs35l45_spi_remove()
47 { .compatible = "cirrus,cs35l45" },
53 { "cs35l45", 0 },
60 .name = "cs35l45",
70 MODULE_DESCRIPTION("SPI CS35L45 driver");