Lines Matching refs:tps6507x
36 static int tps6507x_i2c_read_device(struct tps6507x_dev *tps6507x, char reg, in tps6507x_i2c_read_device() argument
39 struct i2c_client *i2c = tps6507x->i2c_client; in tps6507x_i2c_read_device()
64 static int tps6507x_i2c_write_device(struct tps6507x_dev *tps6507x, char reg, in tps6507x_i2c_write_device() argument
67 struct i2c_client *i2c = tps6507x->i2c_client; in tps6507x_i2c_write_device()
88 struct tps6507x_dev *tps6507x; in tps6507x_i2c_probe() local
90 tps6507x = devm_kzalloc(&i2c->dev, sizeof(struct tps6507x_dev), in tps6507x_i2c_probe()
92 if (tps6507x == NULL) in tps6507x_i2c_probe()
95 i2c_set_clientdata(i2c, tps6507x); in tps6507x_i2c_probe()
96 tps6507x->dev = &i2c->dev; in tps6507x_i2c_probe()
97 tps6507x->i2c_client = i2c; in tps6507x_i2c_probe()
98 tps6507x->read_dev = tps6507x_i2c_read_device; in tps6507x_i2c_probe()
99 tps6507x->write_dev = tps6507x_i2c_write_device; in tps6507x_i2c_probe()
101 return devm_mfd_add_devices(tps6507x->dev, -1, tps6507x_devs, in tps6507x_i2c_probe()