diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 49f8f3c4241f15f82a81ea8fa0e227f948d0add0..1f054d816a7b20e7a5a8e109cc5c9a8ecfbe5f4f 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c @@ -88,7 +88,7 @@ static int read_bus_i2c(char *buf, char **start, off_t offset, int len, /* To implement the dynamic /proc/bus/i2c-? files, we need our own implementation of the read hook */ static struct file_operations i2cproc_operations = { - read: i2cproc_bus_read, + .read = i2cproc_bus_read, }; static int i2cproc_initialized = 0; diff --git a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c index 16f0df413caed95726da8bc63b19572da22b10f6..461f823316918319f5227ad0cacc50dd319e6a1b 100644 --- a/drivers/i2c/i2c-dev.c +++ b/drivers/i2c/i2c-dev.c @@ -69,13 +69,13 @@ static int i2cdev_command(struct i2c_client *client, unsigned int cmd, void *arg); static struct file_operations i2cdev_fops = { - owner: THIS_MODULE, - llseek: no_llseek, - read: i2cdev_read, - write: i2cdev_write, - ioctl: i2cdev_ioctl, - open: i2cdev_open, - release: i2cdev_release, + .owner = THIS_MODULE, + .llseek = no_llseek, + .read = i2cdev_read, + .write = i2cdev_write, + .ioctl = i2cdev_ioctl, + .open = i2cdev_open, + .release = i2cdev_release, }; #define I2CDEV_ADAPS_MAX I2C_ADAP_MAX @@ -86,24 +86,19 @@ static devfs_handle_t devfs_handle = NULL; #endif static struct i2c_driver i2cdev_driver = { - name: "i2c-dev dummy driver", - id: I2C_DRIVERID_I2CDEV, - flags: I2C_DF_DUMMY, - attach_adapter: i2cdev_attach_adapter, - detach_client: i2cdev_detach_client, - command: i2cdev_command, -/* inc_use: NULL, - dec_use: NULL, */ + .name = "i2c-dev dummy driver", + .id = I2C_DRIVERID_I2CDEV, + .flags = I2C_DF_DUMMY, + .attach_adapter = i2cdev_attach_adapter, + .detach_client = i2cdev_detach_client, + .command = i2cdev_command, }; static struct i2c_client i2cdev_client_template = { - name: "I2C /dev entry", - id: 1, - flags: 0, - addr: -1, -/* adapter: NULL, */ - driver: &i2cdev_driver, -/* data: NULL */ + .name = "I2C /dev entry", + .id = 1, + .addr = -1, + .driver = &i2cdev_driver, }; static int i2cdev_initialized; diff --git a/drivers/i2c/i2c-frodo.c b/drivers/i2c/i2c-frodo.c index 3d6ea90dae04894680ec8ff281b9ba4b70424b43..de38a02e29de0bdb6f0d6306eb6d2ce226a46474 100644 --- a/drivers/i2c/i2c-frodo.c +++ b/drivers/i2c/i2c-frodo.c @@ -52,13 +52,13 @@ static int frodo_getscl (void *data) } static struct i2c_algo_bit_data bit_frodo_data = { - setsda: frodo_setsda, - setscl: frodo_setscl, - getsda: frodo_getsda, - getscl: frodo_getscl, - udelay: 80, - mdelay: 80, - timeout: 100 + .setsda = frodo_setsda, + .setscl = frodo_setscl, + .getsda = frodo_getsda, + .getscl = frodo_getscl, + .udelay = 80, + .mdelay = 80, + .timeout = 100 }; static int frodo_client_register (struct i2c_client *client) @@ -82,14 +82,13 @@ static void frodo_dec_use (struct i2c_adapter *adapter) } static struct i2c_adapter frodo_ops = { - name: "Frodo adapter driver", - id: I2C_HW_B_FRODO, - algo: NULL, - algo_data: &bit_frodo_data, - inc_use: frodo_inc_use, - dec_use: frodo_dec_use, - client_register: frodo_client_register, - client_unregister: frodo_client_unregister + .name = "Frodo adapter driver", + .id = I2C_HW_B_FRODO, + .algo_data = &bit_frodo_data, + .inc_use = frodo_inc_use, + .dec_use = frodo_dec_use, + .client_register = frodo_client_register, + .client_unregister = frodo_client_unregister }; static int __init i2c_frodo_init (void) diff --git a/drivers/i2c/i2c-rpx.c b/drivers/i2c/i2c-rpx.c index 14b72642ece6c59975dfadf1e99d41d40df5313f..af9a6368c3c26423d6d9c8fed1a17f599638211c 100644 --- a/drivers/i2c/i2c-rpx.c +++ b/drivers/i2c/i2c-rpx.c @@ -91,7 +91,7 @@ static void rpx_dec_use(struct i2c_adapter *adap) } static struct i2c_algo_8xx_data rpx_data = { - setisr: rpx_install_isr + .setisr = rpx_install_isr }; diff --git a/drivers/i2c/scx200_acb.c b/drivers/i2c/scx200_acb.c index 1b29f806a8309214940d4514b30b08a4e77b4296..083df8d02030c3e7fb8544a05b3cb8acc49c9afc 100644 --- a/drivers/i2c/scx200_acb.c +++ b/drivers/i2c/scx200_acb.c @@ -419,10 +419,10 @@ static void scx200_acb_dec_use(struct i2c_adapter *adapter) /* For now, we only handle combined mode (smbus) */ static struct i2c_algorithm scx200_acb_algorithm = { - name: "NatSemi SCx200 ACCESS.bus", - id: I2C_ALGO_SMBUS, - smbus_xfer: scx200_acb_smbus_xfer, - functionality: scx200_acb_func, + .name = "NatSemi SCx200 ACCESS.bus", + .id = I2C_ALGO_SMBUS, + .smbus_xfer = scx200_acb_smbus_xfer, + .functionality = scx200_acb_func, }; struct scx200_acb_iface *scx200_acb_list;