Lines Matching refs:madera
23 struct madera *madera; in madera_spi_probe() local
87 madera = devm_kzalloc(&spi->dev, sizeof(*madera), GFP_KERNEL); in madera_spi_probe()
88 if (!madera) in madera_spi_probe()
91 madera->regmap = devm_regmap_init_spi(spi, regmap_16bit_config); in madera_spi_probe()
92 if (IS_ERR(madera->regmap)) { in madera_spi_probe()
93 ret = PTR_ERR(madera->regmap); in madera_spi_probe()
99 madera->regmap_32bit = devm_regmap_init_spi(spi, regmap_32bit_config); in madera_spi_probe()
100 if (IS_ERR(madera->regmap_32bit)) { in madera_spi_probe()
101 ret = PTR_ERR(madera->regmap_32bit); in madera_spi_probe()
107 madera->type = type; in madera_spi_probe()
108 madera->type_name = name; in madera_spi_probe()
109 madera->dev = &spi->dev; in madera_spi_probe()
110 madera->irq = spi->irq; in madera_spi_probe()
112 return madera_dev_init(madera); in madera_spi_probe()
117 struct madera *madera = spi_get_drvdata(spi); in madera_spi_remove() local
119 madera_dev_exit(madera); in madera_spi_remove()