From: Wolfram Sang Date: Tue, 1 Jul 2008 20:38:18 +0000 (+0200) Subject: i2c: Fix bad hint about irqs in i2c.h X-Git-Tag: v2.6.26-rc9~77^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e29da9ee8958cc17e27f4053420f1c982614793;p=platform%2Fkernel%2Flinux-stable.git i2c: Fix bad hint about irqs in i2c.h i2c.h mentions -1 as a not-issued irq. This false hint was taken by of_i2c and caused crashes. Don't give any advice as 'no irq' is not consistent across all architectures yet and it is not needed internally by the i2c-core. Signed-off-by: Wolfram Sang Signed-off-by: Jean Delvare --- diff --git a/include/linux/i2c.h b/include/linux/i2c.h index fb9af6a..8dc7301 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -171,7 +171,7 @@ struct i2c_client { struct i2c_adapter *adapter; /* the adapter we sit on */ struct i2c_driver *driver; /* and our access routines */ struct device dev; /* the device structure */ - int irq; /* irq issued by device (or -1) */ + int irq; /* irq issued by device */ struct list_head list; /* DEPRECATED */ struct completion released; };