Lines Matching refs:i2c_client
663 static int cs4270_i2c_remove(struct i2c_client *i2c_client) in cs4270_i2c_remove() argument
665 struct cs4270_private *cs4270 = i2c_get_clientdata(i2c_client); in cs4270_i2c_remove()
680 static int cs4270_i2c_probe(struct i2c_client *i2c_client, in cs4270_i2c_probe() argument
687 cs4270 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs4270_private), in cs4270_i2c_probe()
696 ret = devm_regulator_bulk_get(&i2c_client->dev, in cs4270_i2c_probe()
703 cs4270->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, "reset", in cs4270_i2c_probe()
706 dev_dbg(&i2c_client->dev, "Error getting CS4270 reset GPIO\n"); in cs4270_i2c_probe()
711 dev_dbg(&i2c_client->dev, "Found reset GPIO\n"); in cs4270_i2c_probe()
718 cs4270->regmap = devm_regmap_init_i2c(i2c_client, &cs4270_regmap); in cs4270_i2c_probe()
725 dev_err(&i2c_client->dev, "failed to read i2c at addr %X\n", in cs4270_i2c_probe()
726 i2c_client->addr); in cs4270_i2c_probe()
731 dev_err(&i2c_client->dev, "device at addr %X is not a CS4270\n", in cs4270_i2c_probe()
732 i2c_client->addr); in cs4270_i2c_probe()
736 dev_info(&i2c_client->dev, "found device at i2c address %X\n", in cs4270_i2c_probe()
737 i2c_client->addr); in cs4270_i2c_probe()
738 dev_info(&i2c_client->dev, "hardware revision %X\n", val & 0xF); in cs4270_i2c_probe()
740 i2c_set_clientdata(i2c_client, cs4270); in cs4270_i2c_probe()
742 ret = devm_snd_soc_register_component(&i2c_client->dev, in cs4270_i2c_probe()