]> Pileus Git - ~andy/linux/blobdiff - drivers/media/radio/si470x/radio-si470x-i2c.c
[media] drivers/media: Remove unnecessary semicolon
[~andy/linux] / drivers / media / radio / si470x / radio-si470x-i2c.c
index f867f04cccc99626bb7fc5dee97d34f2adaed9fa..4ef55ec8045e432fcc9576e130e902bc92446bed 100644 (file)
@@ -98,8 +98,12 @@ int si470x_get_register(struct si470x_device *radio, int regnr)
 {
        u16 buf[READ_REG_NUM];
        struct i2c_msg msgs[1] = {
-               { radio->client->addr, I2C_M_RD, sizeof(u16) * READ_REG_NUM,
-                       (void *)buf },
+               {
+                       .addr = radio->client->addr,
+                       .flags = I2C_M_RD,
+                       .len = sizeof(u16) * READ_REG_NUM,
+                       .buf = (void *)buf
+               },
        };
 
        if (i2c_transfer(radio->client->adapter, msgs, 1) != 1)
@@ -119,8 +123,11 @@ int si470x_set_register(struct si470x_device *radio, int regnr)
        int i;
        u16 buf[WRITE_REG_NUM];
        struct i2c_msg msgs[1] = {
-               { radio->client->addr, 0, sizeof(u16) * WRITE_REG_NUM,
-                       (void *)buf },
+               {
+                       .addr = radio->client->addr,
+                       .len = sizeof(u16) * WRITE_REG_NUM,
+                       .buf = (void *)buf
+               },
        };
 
        for (i = 0; i < WRITE_REG_NUM; i++)
@@ -146,8 +153,12 @@ static int si470x_get_all_registers(struct si470x_device *radio)
        int i;
        u16 buf[READ_REG_NUM];
        struct i2c_msg msgs[1] = {
-               { radio->client->addr, I2C_M_RD, sizeof(u16) * READ_REG_NUM,
-                       (void *)buf },
+               {
+                       .addr = radio->client->addr,
+                       .flags = I2C_M_RD,
+                       .len = sizeof(u16) * READ_REG_NUM,
+                       .buf = (void *)buf
+               },
        };
 
        if (i2c_transfer(radio->client->adapter, msgs, 1) != 1)
@@ -297,7 +308,7 @@ static irqreturn_t si470x_i2c_interrupt(int irq, void *dev_id)
                                        READCHAN_BLERD) >> 10;
                        rds = radio->registers[RDSD];
                        break;
-               };
+               }
 
                /* Fill the V4L2 RDS buffer */
                put_unaligned_le16(rds, &tmpbuf);