Symbol: tps6105x
drivers/leds/leds-tps6105x.c
38
struct tps6105x *tps6105x = dev_get_platdata(&pdev->dev);
drivers/leds/leds-tps6105x.c
39
struct tps6105x_platform_data *pdata = tps6105x->pdata;
drivers/leds/leds-tps6105x.c
59
priv->regmap = tps6105x->regmap;
drivers/leds/leds-tps6105x.c
66
ret = regmap_update_bits(tps6105x->regmap, TPS6105X_REG_0,
drivers/mfd/tps6105x.c
122
struct tps6105x *tps6105x;
drivers/mfd/tps6105x.c
134
tps6105x = devm_kmalloc(&client->dev, sizeof(*tps6105x), GFP_KERNEL);
drivers/mfd/tps6105x.c
135
if (!tps6105x)
drivers/mfd/tps6105x.c
138
tps6105x->regmap = devm_regmap_init_i2c(client, &tps6105x_regmap_config);
drivers/mfd/tps6105x.c
139
if (IS_ERR(tps6105x->regmap))
drivers/mfd/tps6105x.c
140
return PTR_ERR(tps6105x->regmap);
drivers/mfd/tps6105x.c
142
i2c_set_clientdata(client, tps6105x);
drivers/mfd/tps6105x.c
143
tps6105x->client = client;
drivers/mfd/tps6105x.c
144
tps6105x->pdata = pdata;
drivers/mfd/tps6105x.c
146
ret = tps6105x_startup(tps6105x);
drivers/mfd/tps6105x.c
152
ret = tps6105x_add_device(tps6105x, &tps6105x_gpio_cell);
drivers/mfd/tps6105x.c
162
ret = tps6105x_add_device(tps6105x, &tps6105x_leds_cell);
drivers/mfd/tps6105x.c
165
ret = tps6105x_add_device(tps6105x, &tps6105x_flash_cell);
drivers/mfd/tps6105x.c
168
ret = tps6105x_add_device(tps6105x, &tps6105x_regulator_cell);
drivers/mfd/tps6105x.c
183
struct tps6105x *tps6105x = i2c_get_clientdata(client);
drivers/mfd/tps6105x.c
188
regmap_update_bits(tps6105x->regmap, TPS6105X_REG_0,
drivers/mfd/tps6105x.c
32
static int tps6105x_startup(struct tps6105x *tps6105x)
drivers/mfd/tps6105x.c
37
ret = regmap_read(tps6105x->regmap, TPS6105X_REG_0, &regval);
drivers/mfd/tps6105x.c
42
dev_info(&tps6105x->client->dev,
drivers/mfd/tps6105x.c
46
dev_info(&tps6105x->client->dev,
drivers/mfd/tps6105x.c
50
dev_info(&tps6105x->client->dev,
drivers/mfd/tps6105x.c
54
dev_info(&tps6105x->client->dev,
drivers/mfd/tps6105x.c
84
static int tps6105x_add_device(struct tps6105x *tps6105x,
drivers/mfd/tps6105x.c
87
cell->platform_data = tps6105x;
drivers/mfd/tps6105x.c
88
cell->pdata_size = sizeof(*tps6105x);
drivers/mfd/tps6105x.c
90
return mfd_add_devices(&tps6105x->client->dev,
drivers/regulator/tps6105x-regulator.c
60
struct tps6105x *tps6105x = dev_get_platdata(&pdev->dev);
drivers/regulator/tps6105x-regulator.c
61
struct tps6105x_platform_data *pdata = tps6105x->pdata;
drivers/regulator/tps6105x-regulator.c
72
config.dev = &tps6105x->client->dev;
drivers/regulator/tps6105x-regulator.c
74
config.driver_data = tps6105x;
drivers/regulator/tps6105x-regulator.c
76
config.regmap = tps6105x->regmap;
drivers/regulator/tps6105x-regulator.c
79
tps6105x->regulator = devm_regulator_register(&pdev->dev,
drivers/regulator/tps6105x-regulator.c
82
if (IS_ERR(tps6105x->regulator)) {
drivers/regulator/tps6105x-regulator.c
83
ret = PTR_ERR(tps6105x->regulator);
drivers/regulator/tps6105x-regulator.c
84
dev_err(&tps6105x->client->dev,
drivers/regulator/tps6105x-regulator.c
88
platform_set_drvdata(pdev, tps6105x);