Lines Matching refs:tps6105x

34 static int tps6105x_startup(struct tps6105x *tps6105x)  in tps6105x_startup()  argument
39 ret = regmap_read(tps6105x->regmap, TPS6105X_REG_0, &regval); in tps6105x_startup()
44 dev_info(&tps6105x->client->dev, in tps6105x_startup()
48 dev_info(&tps6105x->client->dev, in tps6105x_startup()
52 dev_info(&tps6105x->client->dev, in tps6105x_startup()
56 dev_info(&tps6105x->client->dev, in tps6105x_startup()
86 static int tps6105x_add_device(struct tps6105x *tps6105x, in tps6105x_add_device() argument
89 cell->platform_data = tps6105x; in tps6105x_add_device()
90 cell->pdata_size = sizeof(*tps6105x); in tps6105x_add_device()
92 return mfd_add_devices(&tps6105x->client->dev, in tps6105x_add_device()
99 struct tps6105x *tps6105x; in tps6105x_probe() local
109 tps6105x = devm_kmalloc(&client->dev, sizeof(*tps6105x), GFP_KERNEL); in tps6105x_probe()
110 if (!tps6105x) in tps6105x_probe()
113 tps6105x->regmap = devm_regmap_init_i2c(client, &tps6105x_regmap_config); in tps6105x_probe()
114 if (IS_ERR(tps6105x->regmap)) in tps6105x_probe()
115 return PTR_ERR(tps6105x->regmap); in tps6105x_probe()
117 i2c_set_clientdata(client, tps6105x); in tps6105x_probe()
118 tps6105x->client = client; in tps6105x_probe()
119 tps6105x->pdata = pdata; in tps6105x_probe()
121 ret = tps6105x_startup(tps6105x); in tps6105x_probe()
127 ret = tps6105x_add_device(tps6105x, &tps6105x_gpio_cell); in tps6105x_probe()
137 ret = tps6105x_add_device(tps6105x, &tps6105x_leds_cell); in tps6105x_probe()
140 ret = tps6105x_add_device(tps6105x, &tps6105x_flash_cell); in tps6105x_probe()
143 ret = tps6105x_add_device(tps6105x, &tps6105x_regulator_cell); in tps6105x_probe()
158 struct tps6105x *tps6105x = i2c_get_clientdata(client); in tps6105x_remove() local
163 regmap_update_bits(tps6105x->regmap, TPS6105X_REG_0, in tps6105x_remove()