Commit 7df7ee9b authored by Sandhya Bankar's avatar Sandhya Bankar Committed by Greg Kroah-Hartman

Staging: iio: ad5933: Remove unnecessary space after cast.

Remove unnecessary space after cast.
Signed-off-by: default avatarSandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 04e1f7b9
...@@ -315,10 +315,10 @@ static ssize_t ad5933_show_frequency(struct device *dev, ...@@ -315,10 +315,10 @@ static ssize_t ad5933_show_frequency(struct device *dev,
freqreg = be32_to_cpu(dat.d32) & 0xFFFFFF; freqreg = be32_to_cpu(dat.d32) & 0xFFFFFF;
freqreg = (u64) freqreg * (u64) (st->mclk_hz / 4); freqreg = (u64)freqreg * (u64)(st->mclk_hz / 4);
do_div(freqreg, 1 << 27); do_div(freqreg, 1 << 27);
return sprintf(buf, "%d\n", (int) freqreg); return sprintf(buf, "%d\n", (int)freqreg);
} }
static ssize_t ad5933_store_frequency(struct device *dev, static ssize_t ad5933_store_frequency(struct device *dev,
...@@ -366,7 +366,7 @@ static ssize_t ad5933_show(struct device *dev, ...@@ -366,7 +366,7 @@ static ssize_t ad5933_show(struct device *dev,
int ret = 0, len = 0; int ret = 0, len = 0;
mutex_lock(&indio_dev->mlock); mutex_lock(&indio_dev->mlock);
switch ((u32) this_attr->address) { switch ((u32)this_attr->address) {
case AD5933_OUT_RANGE: case AD5933_OUT_RANGE:
len = sprintf(buf, "%u\n", len = sprintf(buf, "%u\n",
st->range_avail[(st->ctrl_hb >> 1) & 0x3]); st->range_avail[(st->ctrl_hb >> 1) & 0x3]);
...@@ -417,7 +417,7 @@ static ssize_t ad5933_store(struct device *dev, ...@@ -417,7 +417,7 @@ static ssize_t ad5933_store(struct device *dev,
} }
mutex_lock(&indio_dev->mlock); mutex_lock(&indio_dev->mlock);
switch ((u32) this_attr->address) { switch ((u32)this_attr->address) {
case AD5933_OUT_RANGE: case AD5933_OUT_RANGE:
for (i = 0; i < 4; i++) for (i = 0; i < 4; i++)
if (val == st->range_avail[i]) { if (val == st->range_avail[i]) {
......
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