]> git.baikalelectronics.ru Git - kernel.git/commitdiff
iio: afe: rescale: export symbols used during testing
authorLiam Beguin <liambeguin@gmail.com>
Sun, 10 Jul 2022 01:31:08 +0000 (21:31 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 Jul 2022 18:01:14 +0000 (19:01 +0100)
In preparation for module support, export symbols use during testing.

Signed-off-by: Liam Beguin <liambeguin@gmail.com>
Link: https://lore.kernel.org/r/20220710013109.3349104-5-liambeguin@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/afe/iio-rescale.c
drivers/iio/test/iio-test-rescale.c

index 6949d2151025e88ba4d74e58117ba5865c1dc4d4..1f280c360701bc333fad01c4c07d3e34a914ea32 100644 (file)
@@ -107,6 +107,7 @@ int rescale_process_scale(struct rescale *rescale, int scale_type,
                return -EOPNOTSUPP;
        }
 }
+EXPORT_SYMBOL_NS_GPL(rescale_process_scale, IIO_RESCALE);
 
 int rescale_process_offset(struct rescale *rescale, int scale_type,
                           int scale, int scale2, int schan_off,
@@ -140,6 +141,7 @@ int rescale_process_offset(struct rescale *rescale, int scale_type,
                return -EOPNOTSUPP;
        }
 }
+EXPORT_SYMBOL_NS_GPL(rescale_process_offset, IIO_RESCALE);
 
 static int rescale_read_raw(struct iio_dev *indio_dev,
                            struct iio_chan_spec const *chan,
index 735e2f97af18ec45d02847bde768d62e51fe4b0e..cc782ccff8807da0ede18fc02d9e5e7ea9783047 100644 (file)
@@ -712,3 +712,4 @@ kunit_test_suite(iio_rescale_test_suite);
 MODULE_AUTHOR("Liam Beguin <liambeguin@gmail.com>");
 MODULE_DESCRIPTION("Test IIO rescale conversion functions");
 MODULE_LICENSE("GPL v2");
+MODULE_IMPORT_NS(IIO_RESCALE);