Lines Matching full:madera
3 * SPI bus interface to Cirrus Logic Madera codecs
15 #include <linux/mfd/madera/core.h>
17 #include "madera.h"
21 struct madera *madera; in madera_spi_probe() local
66 "Unknown Madera SPI device type %ld\n", type); in madera_spi_probe()
79 madera = devm_kzalloc(&spi->dev, sizeof(*madera), GFP_KERNEL); in madera_spi_probe()
80 if (!madera) in madera_spi_probe()
83 madera->regmap = devm_regmap_init_spi(spi, regmap_16bit_config); in madera_spi_probe()
84 if (IS_ERR(madera->regmap)) { in madera_spi_probe()
85 ret = PTR_ERR(madera->regmap); in madera_spi_probe()
91 madera->regmap_32bit = devm_regmap_init_spi(spi, regmap_32bit_config); in madera_spi_probe()
92 if (IS_ERR(madera->regmap_32bit)) { in madera_spi_probe()
93 ret = PTR_ERR(madera->regmap_32bit); in madera_spi_probe()
99 madera->type = type; in madera_spi_probe()
100 madera->type_name = name; in madera_spi_probe()
101 madera->dev = &spi->dev; in madera_spi_probe()
102 madera->irq = spi->irq; in madera_spi_probe()
104 return madera_dev_init(madera); in madera_spi_probe()
109 struct madera *madera = spi_get_drvdata(spi); in madera_spi_remove() local
111 madera_dev_exit(madera); in madera_spi_remove()
130 .name = "madera",
141 MODULE_DESCRIPTION("Madera SPI bus interface");