drivers: iio: chemical: replace comma with a semicolon
authorArushi Singhal <arushisinghal19971997@gmail.com>
Thu, 30 Mar 2017 12:41:22 +0000 (18:11 +0530)
committerJonathan Cameron <jic23@kernel.org>
Thu, 30 Mar 2017 18:13:23 +0000 (19:13 +0100)
Replace a comma between expression statements by a semicolon. This
changes the semantics of the code, but given the current indentation
appears to be what is intended.
A simplified version of the Coccinelle semantic patch that performs this
transformation is as follows:

// <smpl>
@r@
expression e1,e2;
@@

 e1
-,
+;
 e2;
// </smpl>

Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/chemical/ams-iaq-core.c
drivers/iio/chemical/vz89x.c

index 41a8e6f2e31dbf6ce857d1fb35e8d38e292f4b80..c948ad2ee9adf5e4883c8037476549b24040dff6 100644 (file)
@@ -163,7 +163,7 @@ static int ams_iaqcore_probe(struct i2c_client *client,
        mutex_init(&data->lock);
 
        indio_dev->dev.parent = &client->dev;
-       indio_dev->info = &ams_iaqcore_info,
+       indio_dev->info = &ams_iaqcore_info;
        indio_dev->name = dev_name(&client->dev);
        indio_dev->modes = INDIO_DIRECT_MODE;
 
index 8e0e4415c161566e94678126790aadf863f67185..f75eea6822f2852c01c832a70aeb8eabe5941344 100644 (file)
@@ -393,7 +393,7 @@ static int vz89x_probe(struct i2c_client *client,
        mutex_init(&data->lock);
 
        indio_dev->dev.parent = &client->dev;
-       indio_dev->info = &vz89x_info,
+       indio_dev->info = &vz89x_info;
        indio_dev->name = dev_name(&client->dev);
        indio_dev->modes = INDIO_DIRECT_MODE;