staging: iio: resolver: delete space after a cast
authorEva Rachel Retuya <eraretuya@gmail.com>
Thu, 18 Feb 2016 10:59:37 +0000 (18:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 22:46:35 +0000 (14:46 -0800)
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>
drivers/staging/iio/resolver/ad2s1210.c

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