Home
last modified time | relevance | path

Searched refs:i2c_clients (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/platform/x86/x86-android-tablets/
H A Dcore.c151 static struct i2c_client **i2c_clients; variable
225 i2c_clients[idx] = i2c_new_client_device(adap, &board_info); in x86_instantiate_i2c_client()
227 if (IS_ERR(i2c_clients[idx])) in x86_instantiate_i2c_client()
228 return dev_err_probe(&adap->dev, PTR_ERR(i2c_clients[idx]), in x86_instantiate_i2c_client()
340 i2c_unregister_device(i2c_clients[i]); in x86_android_tablet_remove()
342 kfree(i2c_clients); in x86_android_tablet_remove()
394 i2c_clients = kcalloc(dev_info->i2c_client_count, sizeof(*i2c_clients), GFP_KERNEL); in x86_android_tablet_probe()
395 if (!i2c_clients) { in x86_android_tablet_probe()
/linux/drivers/mfd/
H A Dpalmas.c521 palmas->i2c_clients[i] = i2c; in palmas_i2c_probe()
523 palmas->i2c_clients[i] = in palmas_i2c_probe()
526 if (IS_ERR(palmas->i2c_clients[i])) { in palmas_i2c_probe()
529 ret = PTR_ERR(palmas->i2c_clients[i]); in palmas_i2c_probe()
532 palmas->i2c_clients[i]->dev.of_node = of_node_get(node); in palmas_i2c_probe()
534 palmas->regmap[i] = devm_regmap_init_i2c(palmas->i2c_clients[i], in palmas_i2c_probe()
669 if (palmas->i2c_clients[i]) in palmas_i2c_probe()
670 i2c_unregister_device(palmas->i2c_clients[i]); in palmas_i2c_probe()
683 if (palmas->i2c_clients[i]) in palmas_i2c_remove()
684 i2c_unregister_device(palmas->i2c_clients[i]); in palmas_i2c_remove()
/linux/drivers/media/i2c/adv748x/
H A Dadv748x-core.c63 if (!state->i2c_clients[region]) in adv748x_configure_regmap()
67 devm_regmap_init_i2c(state->i2c_clients[region], in adv748x_configure_regmap()
103 struct i2c_client *client = state->i2c_clients[client_page]; in adv748x_read_check()
164 client = state->i2c_clients[i]; in adv748x_set_slave_addresses()
176 for (i = 1; i < ARRAY_SIZE(state->i2c_clients); ++i) in adv748x_unregister_clients()
177 i2c_unregister_device(state->i2c_clients[i]); in adv748x_unregister_clients()
186 state->i2c_clients[i] = i2c_new_ancillary_device( in adv748x_initialise_clients()
191 if (IS_ERR(state->i2c_clients[i])) { in adv748x_initialise_clients()
193 return PTR_ERR(state->i2c_clients[i]); in adv748x_initialise_clients()
724 state->i2c_clients[ADV748X_PAGE_IO] = client; in adv748x_probe()
H A Dadv748x.h190 struct i2c_client *i2c_clients[ADV748X_PAGE_MAX]; member
/linux/drivers/gpu/drm/bridge/analogix/
H A Danalogix-anx6345.c59 struct i2c_client *i2c_clients[I2C_NUM_ADDRESSES]; member
641 for (i = 1; i < ARRAY_SIZE(anx6345->i2c_clients); i++) in unregister_i2c_dummy_clients()
642 if (anx6345->i2c_clients[i] && in unregister_i2c_dummy_clients()
643 anx6345->i2c_clients[i]->addr != anx6345->client->addr) in unregister_i2c_dummy_clients()
644 i2c_unregister_device(anx6345->i2c_clients[i]); in unregister_i2c_dummy_clients()
743 anx6345->i2c_clients[i] = i2c_new_dummy_device(client->adapter, in anx6345_i2c_probe()
746 anx6345->i2c_clients[i] = client; in anx6345_i2c_probe()
748 if (IS_ERR(anx6345->i2c_clients[i])) { in anx6345_i2c_probe()
749 err = PTR_ERR(anx6345->i2c_clients[i]); in anx6345_i2c_probe()
755 anx6345->map[i] = devm_regmap_init_i2c(anx6345->i2c_clients[i], in anx6345_i2c_probe()
/linux/include/linux/mfd/
H A Dpalmas.h63 struct i2c_client *i2c_clients[PALMAS_NUM_CLIENTS]; member