2009-01-15 12:44:18

by Jean Delvare

[permalink] [raw]
Subject: [PATCH] mfd/pcf50633: Terminate i2c_device_id list

The i2c_device_id list is supposed to be zero-terminated.

Signed-off-by: Jean Delvare <[email protected]>
Cc: Balaji Rao <[email protected]>
Cc: Samuel Ortiz <[email protected]>
---
As a side note, I am currious why you set the driver_data to 0x73 and
then never use it...

drivers/mfd/pcf50633-core.c | 1 +
1 file changed, 1 insertion(+)

--- linux-2.6.29-rc1.orig/drivers/mfd/pcf50633-core.c 2009-01-15 11:45:36.000000000 +0100
+++ linux-2.6.29-rc1/drivers/mfd/pcf50633-core.c 2009-01-15 13:31:22.000000000 +0100
@@ -678,6 +678,7 @@ static int __devexit pcf50633_remove(str

static struct i2c_device_id pcf50633_id_table[] = {
{"pcf50633", 0x73},
+ {/* end of list */}
};

static struct i2c_driver pcf50633_driver = {


--
Jean Delvare


2009-01-15 13:56:31

by Balaji Rao

[permalink] [raw]
Subject: Re: [PATCH] mfd/pcf50633: Terminate i2c_device_id list

On Thu, Jan 15, 2009 at 01:43:47PM +0100, Jean Delvare wrote:
> The i2c_device_id list is supposed to be zero-terminated.
>
> Signed-off-by: Jean Delvare <[email protected]>
> Cc: Balaji Rao <[email protected]>
> Cc: Samuel Ortiz <[email protected]>
> ---
> As a side note, I am currious why you set the driver_data to 0x73 and
> then never use it...
>

Hum, now I don't recall why I had then put it. Anyway, I'll send a patch to get
rid of it.

Thanks for your patch.

- Balaji