Lines Matching defs:i2c
3 * common keywest i2c layer
10 #include <linux/i2c.h>
17 * we have to keep a static variable here since i2c attach_adapter
28 /* If instantiated via i2c-powermac, we still need to set the client */
36 * This is kind of a hack, best would be to turn powermac to fixed i2c
71 * Let i2c-core delete that device on driver removal.
72 * This is safe because i2c-core holds the core_lock mutex for us.
91 { "MAC,tas3004", 0 }, /* instantiated by i2c-powermac */
95 MODULE_DEVICE_TABLE(i2c, keywest_i2c_id);
107 void snd_pmac_keywest_cleanup(struct pmac_keywest *i2c)
109 if (keywest_ctx && keywest_ctx == i2c) {
130 int snd_pmac_keywest_init(struct pmac_keywest *i2c)
142 keywest_ctx = i2c;
145 snd_printk(KERN_ERR "cannot register keywest i2c driver\n");
150 /* There was already a device from i2c-powermac. Great, let's return */