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