Lines Matching refs:cs35l56
20 struct cs35l56_private *cs35l56; in cs35l56_i2c_probe() local
25 cs35l56 = devm_kzalloc(dev, sizeof(struct cs35l56_private), GFP_KERNEL); in cs35l56_i2c_probe()
26 if (!cs35l56) in cs35l56_i2c_probe()
29 cs35l56->base.dev = dev; in cs35l56_i2c_probe()
30 cs35l56->base.can_hibernate = true; in cs35l56_i2c_probe()
32 i2c_set_clientdata(client, cs35l56); in cs35l56_i2c_probe()
33 cs35l56->base.regmap = devm_regmap_init_i2c(client, regmap_config); in cs35l56_i2c_probe()
34 if (IS_ERR(cs35l56->base.regmap)) { in cs35l56_i2c_probe()
35 ret = PTR_ERR(cs35l56->base.regmap); in cs35l56_i2c_probe()
36 return dev_err_probe(cs35l56->base.dev, ret, "Failed to allocate register map\n"); in cs35l56_i2c_probe()
39 ret = cs35l56_common_probe(cs35l56); in cs35l56_i2c_probe()
43 ret = cs35l56_init(cs35l56); in cs35l56_i2c_probe()
45 ret = cs35l56_irq_request(&cs35l56->base, client->irq); in cs35l56_i2c_probe()
47 cs35l56_remove(cs35l56); in cs35l56_i2c_probe()
54 struct cs35l56_private *cs35l56 = i2c_get_clientdata(client); in cs35l56_i2c_remove() local
56 cs35l56_remove(cs35l56); in cs35l56_i2c_remove()