Skip to content

Commit

Permalink
i2c: Align i2c_device_id
Browse files Browse the repository at this point in the history
Align i2c_device_id.driver_data to 8 bytes to not fail on crossbuilds.

(Added in d2653e9.)

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
  • Loading branch information
Jiri Slaby authored and Jean Delvare committed May 26, 2008
1 parent 7271e60 commit 2548baa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/linux/mod_devicetable.h
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ struct virtio_device_id {

struct i2c_device_id {
char name[I2C_NAME_SIZE];
kernel_ulong_t driver_data; /* Data private to the driver */
kernel_ulong_t driver_data /* Data private to the driver */
__attribute__((aligned(sizeof(kernel_ulong_t))));
};


Expand Down

0 comments on commit 2548baa

Please sign in to comment.