Lines Matching refs:as3711
127 struct as3711 *as3711; in as3711_i2c_probe() local
145 as3711 = devm_kzalloc(&client->dev, sizeof(struct as3711), GFP_KERNEL); in as3711_i2c_probe()
146 if (!as3711) { in as3711_i2c_probe()
151 as3711->dev = &client->dev; in as3711_i2c_probe()
152 i2c_set_clientdata(client, as3711); in as3711_i2c_probe()
157 as3711->regmap = devm_regmap_init_i2c(client, &as3711_regmap_config); in as3711_i2c_probe()
158 if (IS_ERR(as3711->regmap)) { in as3711_i2c_probe()
159 ret = PTR_ERR(as3711->regmap); in as3711_i2c_probe()
164 ret = regmap_read(as3711->regmap, AS3711_ASIC_ID_1, &id1); in as3711_i2c_probe()
166 ret = regmap_read(as3711->regmap, AS3711_ASIC_ID_2, &id2); in as3711_i2c_probe()
173 dev_info(as3711->dev, "AS3711 detected: %x:%x\n", id1, id2); in as3711_i2c_probe()
188 ret = mfd_add_devices(as3711->dev, -1, as3711_subdevs, in as3711_i2c_probe()
198 struct as3711 *as3711 = i2c_get_clientdata(client); in as3711_i2c_remove() local
200 mfd_remove_devices(as3711->dev); in as3711_i2c_remove()