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