Lines Matching defs:client
24 static int keywest_probe(struct i2c_client *client,
28 /* If instantiated via i2c-powermac, we still need to set the client */
29 if (!keywest_ctx->client)
30 keywest_ctx->client = client;
31 i2c_set_clientdata(client, keywest_ctx);
43 struct i2c_client *client;
54 client = i2c_new_client_device(adapter, &info);
55 if (IS_ERR(client))
56 return PTR_ERR(client);
57 keywest_ctx->client = client;
64 if (!keywest_ctx->client->dev.driver) {
65 i2c_unregister_device(keywest_ctx->client);
66 keywest_ctx->client = NULL;
74 list_add_tail(&keywest_ctx->client->detected,
75 &to_i2c_driver(keywest_ctx->client->dev.driver)->clients);
79 static int keywest_remove(struct i2c_client *client)
83 if (client == keywest_ctx->client)
84 keywest_ctx->client = NULL;
119 if (!keywest_ctx || !keywest_ctx->client)