Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: iio: adc: remove space after cast

Remove the space after an explicit cast because there is no
point in having it

Signed-off-by: Ioana Ciornei <ciorneiioana@gmail.com>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ioana Ciornei and committed by
Greg Kroah-Hartman
c30685c6 603f102f

+7 -7
+1 -1
drivers/staging/iio/adc/ad7192.c
··· 424 424 return -EBUSY; 425 425 } 426 426 427 - switch ((u32) this_attr->address) { 427 + switch ((u32)this_attr->address) { 428 428 case AD7192_REG_GPOCON: 429 429 if (val) 430 430 st->gpocon |= AD7192_GPOCON_BPDSW;
+3 -3
drivers/staging/iio/adc/ad7280a.c
··· 604 604 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); 605 605 unsigned val; 606 606 607 - switch ((u32) this_attr->address) { 607 + switch ((u32)this_attr->address) { 608 608 case AD7280A_CELL_OVERVOLTAGE: 609 609 val = 1000 + (st->cell_threshhigh * 1568) / 100; 610 610 break; ··· 640 640 if (ret) 641 641 return ret; 642 642 643 - switch ((u32) this_attr->address) { 643 + switch ((u32)this_attr->address) { 644 644 case AD7280A_CELL_OVERVOLTAGE: 645 645 case AD7280A_CELL_UNDERVOLTAGE: 646 646 val = ((val - 1000) * 100) / 1568; /* LSB 15.68mV */ ··· 656 656 val = clamp(val, 0L, 0xFFL); 657 657 658 658 mutex_lock(&indio_dev->mlock); 659 - switch ((u32) this_attr->address) { 659 + switch ((u32)this_attr->address) { 660 660 case AD7280A_CELL_OVERVOLTAGE: 661 661 st->cell_threshhigh = val; 662 662 break;
+1 -1
drivers/staging/iio/adc/ad7606_core.c
··· 97 97 98 98 if (ret < 0) 99 99 return ret; 100 - *val = (short) ret; 100 + *val = (short)ret; 101 101 return IIO_VAL_INT; 102 102 case IIO_CHAN_INFO_SCALE: 103 103 *val = st->range * 2;
+2 -2
drivers/staging/iio/adc/ad7606_par.c
··· 22 22 struct iio_dev *indio_dev = platform_get_drvdata(pdev); 23 23 struct ad7606_state *st = iio_priv(indio_dev); 24 24 25 - insw((unsigned long) st->base_address, buf, count); 25 + insw((unsigned long)st->base_address, buf, count); 26 26 27 27 return 0; 28 28 } ··· 38 38 struct iio_dev *indio_dev = platform_get_drvdata(pdev); 39 39 struct ad7606_state *st = iio_priv(indio_dev); 40 40 41 - insb((unsigned long) st->base_address, buf, count * 2); 41 + insb((unsigned long)st->base_address, buf, count * 2); 42 42 43 43 return 0; 44 44 }