Lines Matching refs:tps6105x

32 static int tps6105x_startup(struct tps6105x *tps6105x)  in tps6105x_startup()  argument
37 ret = regmap_read(tps6105x->regmap, TPS6105X_REG_0, &regval); in tps6105x_startup()
42 dev_info(&tps6105x->client->dev, in tps6105x_startup()
46 dev_info(&tps6105x->client->dev, in tps6105x_startup()
50 dev_info(&tps6105x->client->dev, in tps6105x_startup()
54 dev_info(&tps6105x->client->dev, in tps6105x_startup()
84 static int tps6105x_add_device(struct tps6105x *tps6105x, in tps6105x_add_device() argument
87 cell->platform_data = tps6105x; in tps6105x_add_device()
88 cell->pdata_size = sizeof(*tps6105x); in tps6105x_add_device()
90 return mfd_add_devices(&tps6105x->client->dev, in tps6105x_add_device()
122 struct tps6105x *tps6105x; in tps6105x_probe() local
134 tps6105x = devm_kmalloc(&client->dev, sizeof(*tps6105x), GFP_KERNEL); in tps6105x_probe()
135 if (!tps6105x) in tps6105x_probe()
138 tps6105x->regmap = devm_regmap_init_i2c(client, &tps6105x_regmap_config); in tps6105x_probe()
139 if (IS_ERR(tps6105x->regmap)) in tps6105x_probe()
140 return PTR_ERR(tps6105x->regmap); in tps6105x_probe()
142 i2c_set_clientdata(client, tps6105x); in tps6105x_probe()
143 tps6105x->client = client; in tps6105x_probe()
144 tps6105x->pdata = pdata; in tps6105x_probe()
146 ret = tps6105x_startup(tps6105x); in tps6105x_probe()
152 ret = tps6105x_add_device(tps6105x, &tps6105x_gpio_cell); in tps6105x_probe()
162 ret = tps6105x_add_device(tps6105x, &tps6105x_leds_cell); in tps6105x_probe()
165 ret = tps6105x_add_device(tps6105x, &tps6105x_flash_cell); in tps6105x_probe()
168 ret = tps6105x_add_device(tps6105x, &tps6105x_regulator_cell); in tps6105x_probe()
183 struct tps6105x *tps6105x = i2c_get_clientdata(client); in tps6105x_remove() local
188 regmap_update_bits(tps6105x->regmap, TPS6105X_REG_0, in tps6105x_remove()