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()
123 struct tps6105x *tps6105x; in tps6105x_probe() local
135 tps6105x = devm_kmalloc(&client->dev, sizeof(*tps6105x), GFP_KERNEL); in tps6105x_probe()
136 if (!tps6105x) in tps6105x_probe()
139 tps6105x->regmap = devm_regmap_init_i2c(client, &tps6105x_regmap_config); in tps6105x_probe()
140 if (IS_ERR(tps6105x->regmap)) in tps6105x_probe()
141 return PTR_ERR(tps6105x->regmap); in tps6105x_probe()
143 i2c_set_clientdata(client, tps6105x); in tps6105x_probe()
144 tps6105x->client = client; in tps6105x_probe()
145 tps6105x->pdata = pdata; in tps6105x_probe()
147 ret = tps6105x_startup(tps6105x); in tps6105x_probe()
153 ret = tps6105x_add_device(tps6105x, &tps6105x_gpio_cell); in tps6105x_probe()
163 ret = tps6105x_add_device(tps6105x, &tps6105x_leds_cell); in tps6105x_probe()
166 ret = tps6105x_add_device(tps6105x, &tps6105x_flash_cell); in tps6105x_probe()
169 ret = tps6105x_add_device(tps6105x, &tps6105x_regulator_cell); in tps6105x_probe()
184 struct tps6105x *tps6105x = i2c_get_clientdata(client); in tps6105x_remove() local
189 regmap_update_bits(tps6105x->regmap, TPS6105X_REG_0, in tps6105x_remove()