Commit 42ab9278 authored by Sebastian Reichel's avatar Sebastian Reichel Committed by Jonathan Cameron

iio: adc: twl4030: Unexport twl4030_madc_conversion()

All madc users have been converted to IIO API, so drop the
legacy API. The function is still used inside of the driver.
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
Acked-by: default avatarWolfram Sang <wsa@the-dreams.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 6576ff74
......@@ -72,6 +72,8 @@ struct twl4030_madc_data {
u8 isr;
};
static int twl4030_madc_conversion(struct twl4030_madc_request *req);
static int twl4030_madc_read(struct iio_dev *iio_dev,
const struct iio_chan_spec *chan,
int *val, int *val2, long mask)
......@@ -568,7 +570,7 @@ static int twl4030_madc_wait_conversion_ready(struct twl4030_madc_data *madc,
* be a negative error value in the corresponding array element.
* returns 0 if succeeds else error value
*/
int twl4030_madc_conversion(struct twl4030_madc_request *req)
static int twl4030_madc_conversion(struct twl4030_madc_request *req)
{
const struct twl4030_madc_conversion_method *method;
int ret;
......@@ -640,7 +642,6 @@ int twl4030_madc_conversion(struct twl4030_madc_request *req)
return ret;
}
EXPORT_SYMBOL_GPL(twl4030_madc_conversion);
/**
* twl4030_madc_set_current_generator() - setup bias current
......
......@@ -141,6 +141,4 @@ struct twl4030_madc_user_parms {
int status;
u16 result;
};
int twl4030_madc_conversion(struct twl4030_madc_request *conv);
#endif
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