staging: iio: tsl2x7x_core: remove space after a cast
authorEva Rachel Retuya <eraretuya@gmail.com>
Sat, 12 Mar 2016 08:19:22 +0000 (16:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
Delete unneeded space after a cast as suggested by checkpatch.

CHECK: No space is necessary after a cast.

Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/light/tsl2x7x_core.c

index de069be..6291a71 100644 (file)
@@ -413,7 +413,7 @@ static int tsl2x7x_get_lux(struct iio_dev *indio_dev)
        /* calculate ratio */
        ratio = (ch1 << 15) / ch0;
        /* convert to unscaled lux using the pointer to the table */
-       p = (struct tsl2x7x_lux *) chip->tsl2x7x_device_lux;
+       p = (struct tsl2x7x_lux *)chip->tsl2x7x_device_lux;
        while (p->ratio != 0 && p->ratio < ratio)
                p++;
 
@@ -624,7 +624,7 @@ static int tsl2x7x_als_calibrate(struct iio_dev *indio_dev)
        dev_info(&chip->client->dev,
                 "%s als_calibrate completed\n", chip->client->name);
 
-       return (int) gain_trim_val;
+       return (int)gain_trim_val;
 }
 
 static int tsl2x7x_chip_on(struct iio_dev *indio_dev)