staging: iio: light: omit space after a cast
authorEva Rachel Retuya <eraretuya@gmail.com>
Thu, 18 Feb 2016 07:35:37 +0000 (15:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 22:45:56 +0000 (14:45 -0800)
Remove the unneeded space as pointed out 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/isl29018.c
drivers/staging/iio/light/tsl2583.c

index 98038d76da2ab70d284d32952762f1818669b2b1..6c9d943cedbf877a172219b492fbc102c77f4031 100644 (file)
@@ -702,7 +702,7 @@ static const char *isl29018_match_acpi_device(struct device *dev, int *data)
        if (!id)
                return NULL;
 
-       *data = (int) id->driver_data;
+       *data = (int)id->driver_data;
 
        return dev_name(dev);
 }
index 1aae05a6458e2eacae2e7715c8e2ce03989ab2d5..625a11c479e6b7becae2d42a65c8eef0ccd027ee 100644 (file)
@@ -271,7 +271,7 @@ static int taos_get_lux(struct iio_dev *indio_dev)
        /* calculate ratio */
        ratio = (ch1 << 15) / ch0;
        /* convert to unscaled lux using the pointer to the table */
-       for (p = (struct taos_lux *) taos_device_lux;
+       for (p = (struct taos_lux *)taos_device_lux;
             p->ratio != 0 && p->ratio < ratio; p++)
                ;
 
@@ -378,7 +378,7 @@ static int taos_als_calibrate(struct iio_dev *indio_dev)
                dev_err(&chip->client->dev, "taos_als_calibrate failed to get lux\n");
                return lux_val;
        }
-       gain_trim_val = (unsigned int) (((chip->taos_settings.als_cal_target)
+       gain_trim_val = (unsigned int)(((chip->taos_settings.als_cal_target)
                        * chip->taos_settings.als_gain_trim) / lux_val);
 
        if ((gain_trim_val < 250) || (gain_trim_val > 4000)) {
@@ -387,9 +387,9 @@ static int taos_als_calibrate(struct iio_dev *indio_dev)
                        gain_trim_val);
                return -ENODATA;
        }
-       chip->taos_settings.als_gain_trim = (int) gain_trim_val;
+       chip->taos_settings.als_gain_trim = (int)gain_trim_val;
 
-       return (int) gain_trim_val;
+       return (int)gain_trim_val;
 }
 
 /*