Lines Matching full:as3711
3 * AS3711 PMIC MFC driver
14 #include <linux/mfd/as3711.h>
30 [AS3711_REGULATOR] = {.name = "as3711-regulator",},
31 [AS3711_BACKLIGHT] = {.name = "as3711-backlight",},
114 {.compatible = "ams,as3711",},
121 struct as3711 *as3711; in as3711_i2c_probe() local
137 as3711 = devm_kzalloc(&client->dev, sizeof(struct as3711), GFP_KERNEL); in as3711_i2c_probe()
138 if (!as3711) in as3711_i2c_probe()
141 as3711->dev = &client->dev; in as3711_i2c_probe()
142 i2c_set_clientdata(client, as3711); in as3711_i2c_probe()
147 as3711->regmap = devm_regmap_init_i2c(client, &as3711_regmap_config); in as3711_i2c_probe()
148 if (IS_ERR(as3711->regmap)) { in as3711_i2c_probe()
149 ret = PTR_ERR(as3711->regmap); in as3711_i2c_probe()
155 ret = regmap_read(as3711->regmap, AS3711_ASIC_ID_1, &id1); in as3711_i2c_probe()
157 ret = regmap_read(as3711->regmap, AS3711_ASIC_ID_2, &id2); in as3711_i2c_probe()
164 dev_info(as3711->dev, "AS3711 detected: %x:%x\n", id1, id2); in as3711_i2c_probe()
186 ret = devm_mfd_add_devices(as3711->dev, -1, as3711_subdevs, in as3711_i2c_probe()
195 {.name = "as3711", .driver_data = 0},
201 .name = "as3711",