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

Staging: iio: Remove space after type cast

This patch removes unnecessary space after type casts.
Warning found by checkpatch.pl.

Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Cristina Opriceana and committed by
Greg Kroah-Hartman
56cc3b62 da29461c

+6 -6
+3 -3
drivers/staging/iio/frequency/ad9832.c
··· 24 24 25 25 static unsigned long ad9832_calc_freqreg(unsigned long mclk, unsigned long fout) 26 26 { 27 - unsigned long long freqreg = (u64) fout * 28 - (u64) ((u64) 1L << AD9832_FREQ_BITS); 27 + unsigned long long freqreg = (u64)fout * 28 + (u64)((u64)1L << AD9832_FREQ_BITS); 29 29 do_div(freqreg, mclk); 30 30 return freqreg; 31 31 } ··· 86 86 goto error_ret; 87 87 88 88 mutex_lock(&indio_dev->mlock); 89 - switch ((u32) this_attr->address) { 89 + switch ((u32)this_attr->address) { 90 90 case AD9832_FREQ0HM: 91 91 case AD9832_FREQ1HM: 92 92 ret = ad9832_write_frequency(st, this_attr->address, val);
+3 -3
drivers/staging/iio/frequency/ad9834.c
··· 27 27 28 28 static unsigned int ad9834_calc_freqreg(unsigned long mclk, unsigned long fout) 29 29 { 30 - unsigned long long freqreg = (u64) fout * (u64) (1 << AD9834_FREQ_BITS); 30 + unsigned long long freqreg = (u64)fout * (u64)(1 << AD9834_FREQ_BITS); 31 31 32 32 do_div(freqreg, mclk); 33 33 return freqreg; ··· 78 78 goto error_ret; 79 79 80 80 mutex_lock(&indio_dev->mlock); 81 - switch ((u32) this_attr->address) { 81 + switch ((u32)this_attr->address) { 82 82 case AD9834_REG_FREQ0: 83 83 case AD9834_REG_FREQ1: 84 84 ret = ad9834_write_frequency(st, this_attr->address, val); ··· 154 154 155 155 mutex_lock(&indio_dev->mlock); 156 156 157 - switch ((u32) this_attr->address) { 157 + switch ((u32)this_attr->address) { 158 158 case 0: 159 159 if (sysfs_streq(buf, "sine")) { 160 160 st->control &= ~AD9834_MODE;