staging: iio: light: omit space after a cast

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>
This commit is contained in:
Eva Rachel Retuya 2016-02-18 15:35:37 +08:00 committed by Greg Kroah-Hartman
parent ca52c88cac
commit 79783b31d5
2 changed files with 5 additions and 5 deletions

View 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);
}

View 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;
}
/*