Lines Matching refs:client
682 static int tas2552_probe(struct i2c_client *client, in tas2552_probe() argument
690 dev = &client->dev; in tas2552_probe()
691 data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL); in tas2552_probe()
700 data->tas2552_client = client; in tas2552_probe()
701 data->regmap = devm_regmap_init_i2c(client, &tas2552_regmap_config); in tas2552_probe()
704 dev_err(&client->dev, "Failed to allocate register map: %d\n", in tas2552_probe()
719 pm_runtime_set_active(&client->dev); in tas2552_probe()
720 pm_runtime_set_autosuspend_delay(&client->dev, 1000); in tas2552_probe()
721 pm_runtime_use_autosuspend(&client->dev); in tas2552_probe()
722 pm_runtime_enable(&client->dev); in tas2552_probe()
723 pm_runtime_mark_last_busy(&client->dev); in tas2552_probe()
724 pm_runtime_put_sync_autosuspend(&client->dev); in tas2552_probe()
726 dev_set_drvdata(&client->dev, data); in tas2552_probe()
728 ret = devm_snd_soc_register_component(&client->dev, in tas2552_probe()
732 dev_err(&client->dev, "Failed to register component: %d\n", ret); in tas2552_probe()
737 static int tas2552_i2c_remove(struct i2c_client *client) in tas2552_i2c_remove() argument
739 pm_runtime_disable(&client->dev); in tas2552_i2c_remove()