summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/vf610_adc.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-06 11:33:04 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-06 11:33:04 -0800
commitd62994701b1e38794a6e4dfc54beb9ae98d3d822 (patch)
tree648ea7f2e0ccb8cfe9f52fc3fc7ec351678a2004 /drivers/iio/adc/vf610_adc.c
parent843a01f20af180d238cfcb5456e30404c2f4cc37 (diff)
parentdb8fa7311d1ce642134c53e175ca0ae35e021344 (diff)
downloadop-kernel-dev-d62994701b1e38794a6e4dfc54beb9ae98d3d822.zip
op-kernel-dev-d62994701b1e38794a6e4dfc54beb9ae98d3d822.tar.gz
Merge tag 'iio-for-3.15c' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
Jonathan writes: Third IIO new drivers and cleanups series for 3.15. New driver * Xilinx XADC driver - This has been ready for a while but was awaiting a device tree ack (or as it turns out 3+ weeks). Cleanup * Drop some unreachable code from mag3110 highlighted by smatch. Fix * vf610 - introduced this cycle - put a possible negative error code into an unsigned long. Another smatch find - this one promoted by guilt that Dan was busy fixing all our messups.
Diffstat (limited to 'drivers/iio/adc/vf610_adc.c')
-rw-r--r--drivers/iio/adc/vf610_adc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/vf610_adc.c b/drivers/iio/adc/vf610_adc.c
index 37f542e..44799eb5 100644
--- a/drivers/iio/adc/vf610_adc.c
+++ b/drivers/iio/adc/vf610_adc.c
@@ -447,7 +447,7 @@ static int vf610_read_raw(struct iio_dev *indio_dev,
{
struct vf610_adc *info = iio_priv(indio_dev);
unsigned int hc_cfg;
- unsigned long ret;
+ long ret;
switch (mask) {
case IIO_CHAN_INFO_RAW:
OpenPOWER on IntegriCloud