]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iio: adc: twl4030: Unexport twl4030_madc_conversion()
authorSebastian Reichel <sebastian.reichel@collabora.co.uk>
Thu, 27 Apr 2017 15:30:09 +0000 (17:30 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 11 Jun 2017 14:07:31 +0000 (15:07 +0100)
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: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/twl4030-madc.c
include/linux/i2c/twl4030-madc.h

index 88e44066ef8208bc4793fc2982bf0481616d8c53..be60f76d1a5038cc3ed1b6043e8f266f55fbf2b3 100644 (file)
@@ -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 @@ out:
 
        return ret;
 }
-EXPORT_SYMBOL_GPL(twl4030_madc_conversion);
 
 /**
  * twl4030_madc_set_current_generator() - setup bias current
index 0c919ebb31e00550c207b151e8f91e28360ce41f..be9260e261ac2bf92f49f4bd6e81883135a465a9 100644 (file)
@@ -141,6 +141,4 @@ struct twl4030_madc_user_parms {
        int status;
        u16 result;
 };
-
-int twl4030_madc_conversion(struct twl4030_madc_request *conv);
 #endif