Lines Matching full:atc260x
3 * I2C bus interface for ATC260x PMICs
10 #include <linux/mfd/atc260x/core.h>
18 struct atc260x *atc260x; in atc260x_i2c_probe() local
22 atc260x = devm_kzalloc(&client->dev, sizeof(*atc260x), GFP_KERNEL); in atc260x_i2c_probe()
23 if (!atc260x) in atc260x_i2c_probe()
26 atc260x->dev = &client->dev; in atc260x_i2c_probe()
27 atc260x->irq = client->irq; in atc260x_i2c_probe()
29 ret = atc260x_match_device(atc260x, ®map_cfg); in atc260x_i2c_probe()
33 i2c_set_clientdata(client, atc260x); in atc260x_i2c_probe()
35 atc260x->regmap = devm_regmap_init_i2c(client, ®map_cfg); in atc260x_i2c_probe()
36 if (IS_ERR(atc260x->regmap)) { in atc260x_i2c_probe()
37 ret = PTR_ERR(atc260x->regmap); in atc260x_i2c_probe()
42 return atc260x_device_probe(atc260x); in atc260x_i2c_probe()
54 .name = "atc260x",
61 MODULE_DESCRIPTION("ATC260x PMICs I2C bus interface");