Lines Matching refs:tps6507x
2 * tps6507x.c -- TPS6507x chip family multi-function driver
23 #include <linux/mfd/tps6507x.h>
27 .name = "tps6507x-pmic",
30 .name = "tps6507x-ts",
35 static int tps6507x_i2c_read_device(struct tps6507x_dev *tps6507x, char reg,
38 struct i2c_client *i2c = tps6507x->i2c_client;
63 static int tps6507x_i2c_write_device(struct tps6507x_dev *tps6507x, char reg,
66 struct i2c_client *i2c = tps6507x->i2c_client;
88 struct tps6507x_dev *tps6507x;
91 tps6507x = kzalloc(sizeof(struct tps6507x_dev), GFP_KERNEL);
92 if (tps6507x == NULL)
95 i2c_set_clientdata(i2c, tps6507x);
96 tps6507x->dev = &i2c->dev;
97 tps6507x->i2c_client = i2c;
98 tps6507x->read_dev = tps6507x_i2c_read_device;
99 tps6507x->write_dev = tps6507x_i2c_write_device;
101 ret = mfd_add_devices(tps6507x->dev, -1,
111 mfd_remove_devices(tps6507x->dev);
112 kfree(tps6507x);
118 struct tps6507x_dev *tps6507x = i2c_get_clientdata(i2c);
120 mfd_remove_devices(tps6507x->dev);
121 kfree(tps6507x);
127 { "tps6507x", 0 },
135 .name = "tps6507x",