Lines Matching full:axp20x
5 * AXP20x typically comprises an adaptive USB-Compatible PWM charger, BUCK DC-DC
20 #include <linux/mfd/axp20x.h>
27 struct axp20x_dev *axp20x; in axp20x_i2c_probe() local
30 axp20x = devm_kzalloc(&i2c->dev, sizeof(*axp20x), GFP_KERNEL); in axp20x_i2c_probe()
31 if (!axp20x) in axp20x_i2c_probe()
34 axp20x->dev = &i2c->dev; in axp20x_i2c_probe()
35 axp20x->irq = i2c->irq; in axp20x_i2c_probe()
36 dev_set_drvdata(axp20x->dev, axp20x); in axp20x_i2c_probe()
38 ret = axp20x_match_device(axp20x); in axp20x_i2c_probe()
42 axp20x->regmap = devm_regmap_init_i2c(i2c, axp20x->regmap_cfg); in axp20x_i2c_probe()
43 if (IS_ERR(axp20x->regmap)) { in axp20x_i2c_probe()
44 ret = PTR_ERR(axp20x->regmap); in axp20x_i2c_probe()
49 return axp20x_device_probe(axp20x); in axp20x_i2c_probe()
54 struct axp20x_dev *axp20x = i2c_get_clientdata(i2c); in axp20x_i2c_remove() local
56 axp20x_device_remove(axp20x); in axp20x_i2c_remove()
106 .name = "axp20x-i2c",
117 MODULE_DESCRIPTION("PMIC MFD I2C driver for AXP20X");