Commit 54a0cd3e authored by Eva Rachel Retuya's avatar Eva Rachel Retuya Committed by Greg Kroah-Hartman

staging: iio: tsl2x7x_core: remove space after a cast

Delete unneeded space after a cast as suggested by checkpatch.

CHECK: No space is necessary after a cast.
Signed-off-by: default avatarEva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2cbc8b34
...@@ -413,7 +413,7 @@ static int tsl2x7x_get_lux(struct iio_dev *indio_dev) ...@@ -413,7 +413,7 @@ static int tsl2x7x_get_lux(struct iio_dev *indio_dev)
/* calculate ratio */ /* calculate ratio */
ratio = (ch1 << 15) / ch0; ratio = (ch1 << 15) / ch0;
/* convert to unscaled lux using the pointer to the table */ /* 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) while (p->ratio != 0 && p->ratio < ratio)
p++; p++;
...@@ -624,7 +624,7 @@ static int tsl2x7x_als_calibrate(struct iio_dev *indio_dev) ...@@ -624,7 +624,7 @@ static int tsl2x7x_als_calibrate(struct iio_dev *indio_dev)
dev_info(&chip->client->dev, dev_info(&chip->client->dev,
"%s als_calibrate completed\n", chip->client->name); "%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) static int tsl2x7x_chip_on(struct iio_dev *indio_dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment