Lines Matching refs:tps6105x
24 #include <linux/mfd/tps6105x.h>
32 static int tps6105x_startup(struct tps6105x *tps6105x)
37 ret = regmap_read(tps6105x->regmap, TPS6105X_REG_0, ®val);
42 dev_info(&tps6105x->client->dev,
46 dev_info(&tps6105x->client->dev,
50 dev_info(&tps6105x->client->dev,
54 dev_info(&tps6105x->client->dev,
69 .name = "tps6105x-gpio",
73 .name = "tps6105x-leds",
77 .name = "tps6105x-flash",
81 .name = "tps6105x-regulator",
84 static int tps6105x_add_device(struct tps6105x *tps6105x,
87 cell->platform_data = tps6105x;
88 cell->pdata_size = sizeof(*tps6105x);
90 return mfd_add_devices(&tps6105x->client->dev,
122 struct tps6105x *tps6105x;
134 tps6105x = devm_kmalloc(&client->dev, sizeof(*tps6105x), GFP_KERNEL);
135 if (!tps6105x)
138 tps6105x->regmap = devm_regmap_init_i2c(client, &tps6105x_regmap_config);
139 if (IS_ERR(tps6105x->regmap))
140 return PTR_ERR(tps6105x->regmap);
142 i2c_set_clientdata(client, tps6105x);
143 tps6105x->client = client;
144 tps6105x->pdata = pdata;
146 ret = tps6105x_startup(tps6105x);
152 ret = tps6105x_add_device(tps6105x, &tps6105x_gpio_cell);
162 ret = tps6105x_add_device(tps6105x, &tps6105x_leds_cell);
165 ret = tps6105x_add_device(tps6105x, &tps6105x_flash_cell);
168 ret = tps6105x_add_device(tps6105x, &tps6105x_regulator_cell);
183 struct tps6105x *tps6105x = i2c_get_clientdata(client);
188 regmap_update_bits(tps6105x->regmap, TPS6105X_REG_0,
209 .name = "tps6105x",