Searched refs:keywest_ctx (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/sound/ppc/
H A Dkeywest.c33 static struct pmac_keywest *keywest_ctx; variable in typeref:struct:pmac_keywest
42 if (!keywest_ctx->client) keywest_probe()
43 keywest_ctx->client = client; keywest_probe()
44 i2c_set_clientdata(client, keywest_ctx); keywest_probe()
57 if (! keywest_ctx) keywest_attach_adapter()
65 info.addr = keywest_ctx->addr; keywest_attach_adapter()
66 keywest_ctx->client = i2c_new_device(adapter, &info); keywest_attach_adapter()
67 if (!keywest_ctx->client) keywest_attach_adapter()
74 if (!keywest_ctx->client->dev.driver) { keywest_attach_adapter()
75 i2c_unregister_device(keywest_ctx->client); keywest_attach_adapter()
76 keywest_ctx->client = NULL; keywest_attach_adapter()
84 list_add_tail(&keywest_ctx->client->detected, keywest_attach_adapter()
85 &to_i2c_driver(keywest_ctx->client->dev.driver)->clients); keywest_attach_adapter()
91 if (! keywest_ctx) keywest_remove()
93 if (client == keywest_ctx->client) keywest_remove()
94 keywest_ctx->client = NULL; keywest_remove()
119 if (keywest_ctx && keywest_ctx == i2c) { snd_pmac_keywest_cleanup()
121 keywest_ctx = NULL; snd_pmac_keywest_cleanup()
129 if (!keywest_ctx || !keywest_ctx->client) snd_pmac_tumbler_post_init()
132 if ((err = keywest_ctx->init_client(keywest_ctx)) < 0) { snd_pmac_tumbler_post_init()
145 if (keywest_ctx) snd_pmac_keywest_init()
152 keywest_ctx = i2c; snd_pmac_keywest_init()

Completed in 66 milliseconds