summaryrefslogtreecommitdiff
path: root/drivers/iio
diff options
context:
space:
mode:
authorSebastian Reichel <sebastian.reichel@collabora.co.uk>2017-04-27 17:30:08 +0200
committerJonathan Cameron <jic23@kernel.org>2017-06-11 15:07:30 +0100
commit6576ff740f5c1e6705d33b9d6a922526f20fa0dc (patch)
treeca0ab5be6d399faec758ef7aca6c5d12768e80c3 /drivers/iio
parent95e339b6e85d03438d1d9236ccaff4ecd895f3ab (diff)
downloadlwn-6576ff740f5c1e6705d33b9d6a922526f20fa0dc.tar.gz
lwn-6576ff740f5c1e6705d33b9d6a922526f20fa0dc.zip
iio: adc: twl4030: Drop twl4030_get_madc_conversion()
Drop legacy twl4030_get_madc_conversion() method. It has been used by drivers to get madc data before it conversion to IIO API. There are no users in the mainline kernel anymore. Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Acked-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/adc/twl4030-madc.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/iio/adc/twl4030-madc.c b/drivers/iio/adc/twl4030-madc.c
index 0c74869a540a..88e44066ef82 100644
--- a/drivers/iio/adc/twl4030-madc.c
+++ b/drivers/iio/adc/twl4030-madc.c
@@ -642,27 +642,6 @@ out:
}
EXPORT_SYMBOL_GPL(twl4030_madc_conversion);
-int twl4030_get_madc_conversion(int channel_no)
-{
- struct twl4030_madc_request req;
- int temp = 0;
- int ret;
-
- req.channels = (1 << channel_no);
- req.method = TWL4030_MADC_SW2;
- req.active = 0;
- req.raw = 0;
- req.func_cb = NULL;
- ret = twl4030_madc_conversion(&req);
- if (ret < 0)
- return ret;
- if (req.rbuf[channel_no] > 0)
- temp = req.rbuf[channel_no];
-
- return temp;
-}
-EXPORT_SYMBOL_GPL(twl4030_get_madc_conversion);
-
/**
* twl4030_madc_set_current_generator() - setup bias current
*