Re: [alsa-devel] [RFC 2/2] sound: ppc: keywest: drop using attach adapter

2014-12-04 Thread Takashi Iwai
At Thu, 4 Dec 2014 17:41:53 +0100, Wolfram Sang wrote: As we now have deferred probing, we can use a custom mechanism and finally get rid of the legacy interface from the i2c core. Signed-off-by: Wolfram Sang w...@the-dreams.de --- sound/ppc/keywest.c | 21 ++--- 1 file

Re: [alsa-devel] [RFC 2/2] sound: ppc: keywest: drop using attach adapter

2014-12-04 Thread Wolfram Sang
+ + /* We assume Macs have consecutive I2C bus numbers starting at 0 */ + while (adap) { + err = keywest_attach_adapter(adap); + if (!err) + break; + i2c_put_adapter(adap); + adap = i2c_get_adapter(++i); + } +