Lines Matching refs:cs35l45
18 struct cs35l45_private *cs35l45; in cs35l45_i2c_probe() local
22 cs35l45 = devm_kzalloc(dev, sizeof(struct cs35l45_private), GFP_KERNEL); in cs35l45_i2c_probe()
23 if (!cs35l45) in cs35l45_i2c_probe()
26 i2c_set_clientdata(client, cs35l45); in cs35l45_i2c_probe()
27 cs35l45->regmap = devm_regmap_init_i2c(client, &cs35l45_i2c_regmap); in cs35l45_i2c_probe()
28 if (IS_ERR(cs35l45->regmap)) { in cs35l45_i2c_probe()
29 ret = PTR_ERR(cs35l45->regmap); in cs35l45_i2c_probe()
34 cs35l45->dev = dev; in cs35l45_i2c_probe()
35 cs35l45->irq = client->irq; in cs35l45_i2c_probe()
36 cs35l45->bus_type = CONTROL_BUS_I2C; in cs35l45_i2c_probe()
37 cs35l45->i2c_addr = client->addr; in cs35l45_i2c_probe()
39 return cs35l45_probe(cs35l45); in cs35l45_i2c_probe()
44 struct cs35l45_private *cs35l45 = i2c_get_clientdata(client); in cs35l45_i2c_remove() local
46 cs35l45_remove(cs35l45); in cs35l45_i2c_remove()