* we have to keep a static variable here since i2c attach_adapter
* callback cannot pass a private data.
*/
* we have to keep a static variable here since i2c attach_adapter
* callback cannot pass a private data.
*/
.attach_adapter = &keywest_attach_adapter,
.detach_client = &keywest_detach_client,
};
.attach_adapter = &keywest_attach_adapter,
.detach_client = &keywest_detach_client,
};
new_client->addr = keywest_ctx->addr;
i2c_set_clientdata(new_client, keywest_ctx);
new_client->adapter = adapter;
new_client->addr = keywest_ctx->addr;
i2c_set_clientdata(new_client, keywest_ctx);
new_client->adapter = adapter;
if ((err = keywest_ctx->init_client(keywest_ctx)) < 0) {
snd_printk(KERN_ERR "tumbler: %i :cannot initialize the MCS\n", err);
return err;
if ((err = keywest_ctx->init_client(keywest_ctx)) < 0) {
snd_printk(KERN_ERR "tumbler: %i :cannot initialize the MCS\n", err);
return err;