Re: [PATCH] i2c-gpio: Add support for new-style clients

2007-06-15 Thread Jean Delvare
number. > > Oh, indeed. That worked for me just I only used bus number 0. > Here is a revised patch. > > > Subject: [PATCH] i2c-gpio: Add support for new-style clients (take 2) > > Use i2c_bit_add_numbered_bus() if platform_device id specified, so > that the i2c-gpio adapt

Re: [PATCH] i2c-gpio: Add support for new-style clients

2007-06-13 Thread Atsushi Nemoto
goto err_add_bus; > > > > This isn't sufficient. Before you call i2c_bit_add_numbered_bus(adap), > you are supposed to set adap->nr to the desired i2c adapter number. Oh, indeed. That worked for me just I only used bus number 0. Here is a revised patch. Subjec

Re: [PATCH] i2c-gpio: Add support for new-style clients

2007-06-13 Thread Jean Delvare
Hi Atsushi, On Wed, 13 Jun 2007 00:43:16 +0900 (JST), Atsushi Nemoto wrote: > Use i2c_bit_add_numbered_bus() if device id specified, so that the > i2c-gpio adapter works well with new-style pre-declared devices. > > Signed-off-by: Atsushi Nemoto <[EMAIL PROTECTED]> > --- > diff --git a/drivers/i2

Re: [PATCH] i2c-gpio: Add support for new-style clients

2007-06-13 Thread Haavard Skinnemoen
On Wed, 13 Jun 2007 00:43:16 +0900 (JST) Atsushi Nemoto <[EMAIL PROTECTED]> wrote: > Use i2c_bit_add_numbered_bus() if device id specified, so that the > i2c-gpio adapter works well with new-style pre-declared devices. > > Signed-off-by: Atsushi Nemoto <[EMAIL PROTECTED]> Makes sense to me. I ha

[PATCH] i2c-gpio: Add support for new-style clients

2007-06-12 Thread Atsushi Nemoto
Use i2c_bit_add_numbered_bus() if device id specified, so that the i2c-gpio adapter works well with new-style pre-declared devices. Signed-off-by: Atsushi Nemoto <[EMAIL PROTECTED]> --- diff --git a/drivers/i2c/busses/i2c-gpio.c b/drivers/i2c/busses/i2c-gpio.c index a7dd546..8a62c26 100644 --- a/d