23 #include <linux/i2c.h>
38 i2c_set_clientdata(client, keywest_ctx);
68 if (!keywest_ctx->
client->driver) {
79 &keywest_ctx->
client->driver->clients);
87 if (client == keywest_ctx->
client)
101 .name =
"PMac Keywest Audio",
103 .attach_adapter = keywest_attach_adapter,
104 .probe = keywest_probe,
105 .remove = keywest_remove,
106 .id_table = keywest_i2c_id,
112 if (keywest_ctx && keywest_ctx == i2c) {
122 if (!keywest_ctx || !keywest_ctx->
client)
125 if ((err = keywest_ctx->
init_client(keywest_ctx)) < 0) {
142 if ((err = i2c_add_driver(&keywest_driver))) {