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