Lines Matching refs:cs35l41
34 struct cs35l41_private *cs35l41; in cs35l41_i2c_probe() local
40 cs35l41 = devm_kzalloc(dev, sizeof(struct cs35l41_private), GFP_KERNEL); in cs35l41_i2c_probe()
42 if (!cs35l41) in cs35l41_i2c_probe()
45 cs35l41->dev = dev; in cs35l41_i2c_probe()
46 cs35l41->irq = client->irq; in cs35l41_i2c_probe()
48 i2c_set_clientdata(client, cs35l41); in cs35l41_i2c_probe()
49 cs35l41->regmap = devm_regmap_init_i2c(client, regmap_config); in cs35l41_i2c_probe()
50 if (IS_ERR(cs35l41->regmap)) { in cs35l41_i2c_probe()
51 ret = PTR_ERR(cs35l41->regmap); in cs35l41_i2c_probe()
52 dev_err(cs35l41->dev, "Failed to allocate register map: %d\n", ret); in cs35l41_i2c_probe()
56 return cs35l41_probe(cs35l41, hw_cfg); in cs35l41_i2c_probe()
61 struct cs35l41_private *cs35l41 = i2c_get_clientdata(client); in cs35l41_i2c_remove() local
63 cs35l41_remove(cs35l41); in cs35l41_i2c_remove()