]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/mod_devicetable.h
devcgroup: fix odd behaviour when writing 'a' to devices.allow
[linux-2.6-omap-h63xx.git] / include / linux / mod_devicetable.h
index 139d49d2f078d5573f166475c99873916a041515..69b2342d5ebb81954ad9bcf3df568aa7d6585ada 100644 (file)
@@ -368,4 +368,16 @@ struct virtio_device_id {
 };
 #define VIRTIO_DEV_ANY_ID      0xffffffff
 
+/* i2c */
+
+#define I2C_NAME_SIZE  20
+#define I2C_MODULE_PREFIX "i2c:"
+
+struct i2c_device_id {
+       char name[I2C_NAME_SIZE];
+       kernel_ulong_t driver_data      /* Data private to the driver */
+                       __attribute__((aligned(sizeof(kernel_ulong_t))));
+};
+
+
 #endif /* LINUX_MOD_DEVICETABLE_H */