Searched refs:i2c_clients (Results 1 – 6 of 6) sorted by relevance
549 palmas->i2c_clients[i] = i2c; in palmas_i2c_probe()551 palmas->i2c_clients[i] = in palmas_i2c_probe()554 if (IS_ERR(palmas->i2c_clients[i])) { in palmas_i2c_probe()557 ret = PTR_ERR(palmas->i2c_clients[i]); in palmas_i2c_probe()560 palmas->i2c_clients[i]->dev.of_node = of_node_get(node); in palmas_i2c_probe()562 palmas->regmap[i] = devm_regmap_init_i2c(palmas->i2c_clients[i], in palmas_i2c_probe()697 if (palmas->i2c_clients[i]) in palmas_i2c_probe()698 i2c_unregister_device(palmas->i2c_clients[i]); in palmas_i2c_probe()711 if (palmas->i2c_clients[i]) in palmas_i2c_remove()712 i2c_unregister_device(palmas->i2c_clients[i]); in palmas_i2c_remove()
60 struct i2c_client *i2c_clients[I2C_NUM_ADDRESSES]; member636 for (i = 1; i < ARRAY_SIZE(anx6345->i2c_clients); i++) in unregister_i2c_dummy_clients()637 if (anx6345->i2c_clients[i] && in unregister_i2c_dummy_clients()638 anx6345->i2c_clients[i]->addr != anx6345->client->addr) in unregister_i2c_dummy_clients()639 i2c_unregister_device(anx6345->i2c_clients[i]); in unregister_i2c_dummy_clients()739 anx6345->i2c_clients[i] = i2c_new_dummy_device(client->adapter, in anx6345_i2c_probe()742 anx6345->i2c_clients[i] = client; in anx6345_i2c_probe()744 if (IS_ERR(anx6345->i2c_clients[i])) { in anx6345_i2c_probe()745 err = PTR_ERR(anx6345->i2c_clients[i]); in anx6345_i2c_probe()751 anx6345->map[i] = devm_regmap_init_i2c(anx6345->i2c_clients[i], in anx6345_i2c_probe()
63 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()705 state->i2c_clients[ADV748X_PAGE_IO] = client; in adv748x_probe()
192 struct i2c_client *i2c_clients[ADV748X_PAGE_MAX]; member
196 struct i2c_client *i2c_clients[ADV76XX_PAGE_MAX]; member340 struct i2c_client *client = state->i2c_clients[client_page]; in adv76xx_read_check()2875 for (i = 1; i < ARRAY_SIZE(state->i2c_clients); ++i) in adv76xx_unregister_clients()2876 i2c_unregister_device(state->i2c_clients[i]); in adv76xx_unregister_clients()3147 np = state->i2c_clients[ADV76XX_PAGE_IO]->dev.of_node; in adv76xx_parse_dt()3306 if (!state->i2c_clients[region]) in configure_regmap()3310 devm_regmap_init_i2c(state->i2c_clients[region], in configure_regmap()3315 v4l_err(state->i2c_clients[region], in configure_regmap()3372 state->i2c_clients[ADV76XX_PAGE_IO] = client; in adv76xx_probe()3539 state->i2c_clients[i] = dummy_client; in adv76xx_probe()
64 struct i2c_client *i2c_clients[PALMAS_NUM_CLIENTS]; member