Lines Matching refs:i2c_client
807 static int cs35l34_handle_of_data(struct i2c_client *i2c_client, in cs35l34_handle_of_data() argument
810 struct device_node *np = i2c_client->dev.of_node; in cs35l34_handle_of_data()
817 dev_err(&i2c_client->dev, in cs35l34_handle_of_data()
826 dev_warn(&i2c_client->dev, in cs35l34_handle_of_data()
833 dev_err(&i2c_client->dev, "Inductor not specified.\n"); in cs35l34_handle_of_data()
839 dev_err(&i2c_client->dev, in cs35l34_handle_of_data()
995 static int cs35l34_i2c_probe(struct i2c_client *i2c_client, in cs35l34_i2c_probe() argument
1000 dev_get_platdata(&i2c_client->dev); in cs35l34_i2c_probe()
1005 cs35l34 = devm_kzalloc(&i2c_client->dev, sizeof(*cs35l34), GFP_KERNEL); in cs35l34_i2c_probe()
1009 i2c_set_clientdata(i2c_client, cs35l34); in cs35l34_i2c_probe()
1010 cs35l34->regmap = devm_regmap_init_i2c(i2c_client, &cs35l34_regmap); in cs35l34_i2c_probe()
1013 dev_err(&i2c_client->dev, "regmap_init() failed: %d\n", ret); in cs35l34_i2c_probe()
1021 ret = devm_regulator_bulk_get(&i2c_client->dev, in cs35l34_i2c_probe()
1025 dev_err(&i2c_client->dev, in cs35l34_i2c_probe()
1033 dev_err(&i2c_client->dev, in cs35l34_i2c_probe()
1041 pdata = devm_kzalloc(&i2c_client->dev, sizeof(*pdata), in cs35l34_i2c_probe()
1048 if (i2c_client->dev.of_node) { in cs35l34_i2c_probe()
1049 ret = cs35l34_handle_of_data(i2c_client, pdata); in cs35l34_i2c_probe()
1057 ret = devm_request_threaded_irq(&i2c_client->dev, i2c_client->irq, NULL, in cs35l34_i2c_probe()
1061 dev_err(&i2c_client->dev, "Failed to request IRQ: %d\n", ret); in cs35l34_i2c_probe()
1063 cs35l34->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, in cs35l34_i2c_probe()
1077 dev_err(&i2c_client->dev, "Failed to read device ID: %d\n", ret); in cs35l34_i2c_probe()
1082 dev_err(&i2c_client->dev, in cs35l34_i2c_probe()
1091 dev_err(&i2c_client->dev, "Get Revision ID failed\n"); in cs35l34_i2c_probe()
1095 dev_info(&i2c_client->dev, in cs35l34_i2c_probe()
1107 pm_runtime_set_autosuspend_delay(&i2c_client->dev, 100); in cs35l34_i2c_probe()
1108 pm_runtime_use_autosuspend(&i2c_client->dev); in cs35l34_i2c_probe()
1109 pm_runtime_set_active(&i2c_client->dev); in cs35l34_i2c_probe()
1110 pm_runtime_enable(&i2c_client->dev); in cs35l34_i2c_probe()
1112 ret = devm_snd_soc_register_component(&i2c_client->dev, in cs35l34_i2c_probe()
1115 dev_err(&i2c_client->dev, in cs35l34_i2c_probe()
1131 static int cs35l34_i2c_remove(struct i2c_client *client) in cs35l34_i2c_remove()