Lines Matching defs:client
19 static int keywest_probe(struct i2c_client *client)
22 /* If instantiated via i2c-powermac, we still need to set the client */
23 if (!keywest_ctx->client)
24 keywest_ctx->client = client;
25 i2c_set_clientdata(client, keywest_ctx);
37 struct i2c_client *client;
48 client = i2c_new_client_device(adapter, &info);
49 if (IS_ERR(client))
50 return PTR_ERR(client);
51 keywest_ctx->client = client;
58 if (!keywest_ctx->client->dev.driver) {
59 i2c_unregister_device(keywest_ctx->client);
60 keywest_ctx->client = NULL;
68 list_add_tail(&keywest_ctx->client->detected,
69 &to_i2c_driver(keywest_ctx->client->dev.driver)->clients);
73 static void keywest_remove(struct i2c_client *client)
77 if (client == keywest_ctx->client)
78 keywest_ctx->client = NULL;
111 if (!keywest_ctx || !keywest_ctx->client)