staging: iio: resolver: delete space after a cast

Delete unwanted whitespace after casting. Issue pointed out by
checkpatch.

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 18:59:37 +08:00 committed by Greg Kroah-Hartman
parent 84681c7c85
commit c3f63dd6fe
1 changed files with 2 additions and 2 deletions

View File

@ -501,7 +501,7 @@ static int ad2s1210_read_raw(struct iio_dev *indio_dev,
switch (chan->type) { switch (chan->type) {
case IIO_ANGL: case IIO_ANGL:
pos = be16_to_cpup((__be16 *) st->rx); pos = be16_to_cpup((__be16 *)st->rx);
if (st->hysteresis) if (st->hysteresis)
pos >>= 16 - st->resolution; pos >>= 16 - st->resolution;
*val = pos; *val = pos;
@ -509,7 +509,7 @@ static int ad2s1210_read_raw(struct iio_dev *indio_dev,
break; break;
case IIO_ANGL_VEL: case IIO_ANGL_VEL:
negative = st->rx[0] & 0x80; negative = st->rx[0] & 0x80;
vel = be16_to_cpup((__be16 *) st->rx); vel = be16_to_cpup((__be16 *)st->rx);
vel >>= 16 - st->resolution; vel >>= 16 - st->resolution;
if (vel & 0x8000) { if (vel & 0x8000) {
negative = (0xffff >> st->resolution) << st->resolution; negative = (0xffff >> st->resolution) << st->resolution;