From patchwork Sat Jun 4 15:53:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12869627 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D396C43334 for ; Sat, 4 Jun 2022 15:44:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230097AbiFDPoL (ORCPT ); Sat, 4 Jun 2022 11:44:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237347AbiFDPoJ (ORCPT ); Sat, 4 Jun 2022 11:44:09 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C25E19C2E for ; Sat, 4 Jun 2022 08:44:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BF6B9B80691 for ; Sat, 4 Jun 2022 15:44:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA6F6C34119; Sat, 4 Jun 2022 15:44:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654357446; bh=Mlcmg6noszWbzEl5UzPqTRwAnDARqJ7495GB0rIUWs0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V/0JvZ15lnxchnhfsg0vvVp7+iZGiv7iVjV7VlRT2ZH0RUpS+6yVhKTi3Alf7Mpnh qL3GO0/MPdI+T/1p/XCrCLUnVnOsjknVgQHcfuEBC02N/DSaXZDX6X1spBtVRPui9b FK/1yZh5PxXXUGLHBUZJAY+Oswrhbp6IbHgda/IINYwAqbPOXJrJpw/nOzcs5dx5Kd EIitMQVN4fYvoI1ROyKlyrg99Y2eNPxfSmWZ+i09q4f6YMNMW4sxDEJdZYlsGWfZh4 rqVUXj2REunw6V9LP+b1k8joxePLv1DbLRTnhrscynugW4ZpnluVSAzYR2QqG4dSeH 3o36Ih2TGnvLA== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Jonathan Cameron Subject: [PATCH v2 1/4] iio: imu: bmi160: Move exported symbols to IIO_BMI160 namespace Date: Sat, 4 Jun 2022 16:53:03 +0100 Message-Id: <20220604155306.422937-2-jic23@kernel.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220604155306.422937-1-jic23@kernel.org> References: <20220604155306.422937-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Avoid unnecessary pollution of the global symbol namespace by moving library functions in to a specific namespace and import that into the drivers that make use of the functions. For more info: https://lwn.net/Articles/760045/ Signed-off-by: Jonathan Cameron Link: https://lore.kernel.org/r/20220220173701.502331-2-jic23@kernel.org --- drivers/iio/imu/bmi160/bmi160_core.c | 6 +++--- drivers/iio/imu/bmi160/bmi160_i2c.c | 1 + drivers/iio/imu/bmi160/bmi160_spi.c | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/iio/imu/bmi160/bmi160_core.c b/drivers/iio/imu/bmi160/bmi160_core.c index e7aec56ea136..a77f1a8348ff 100644 --- a/drivers/iio/imu/bmi160/bmi160_core.c +++ b/drivers/iio/imu/bmi160/bmi160_core.c @@ -143,7 +143,7 @@ const struct regmap_config bmi160_regmap_config = { .reg_bits = 8, .val_bits = 8, }; -EXPORT_SYMBOL(bmi160_regmap_config); +EXPORT_SYMBOL_NS(bmi160_regmap_config, IIO_BMI160); struct bmi160_regs { u8 data; /* LSB byte register for X-axis */ @@ -633,7 +633,7 @@ int bmi160_enable_irq(struct regmap *regmap, bool enable) BMI160_DRDY_INT_EN, enable_bit, BMI160_NORMAL_WRITE_USLEEP); } -EXPORT_SYMBOL(bmi160_enable_irq); +EXPORT_SYMBOL_NS(bmi160_enable_irq, IIO_BMI160); static int bmi160_get_irq(struct fwnode_handle *fwnode, enum bmi160_int_pin *pin) { @@ -884,7 +884,7 @@ int bmi160_core_probe(struct device *dev, struct regmap *regmap, return devm_iio_device_register(dev, indio_dev); } -EXPORT_SYMBOL_GPL(bmi160_core_probe); +EXPORT_SYMBOL_NS_GPL(bmi160_core_probe, IIO_BMI160); MODULE_AUTHOR("Daniel Baluta "); MODULE_DESCRIPTION("Bosch BMI160 driver"); diff --git a/drivers/iio/imu/bmi160/bmi160_i2c.c b/drivers/iio/imu/bmi160/bmi160_i2c.c index 02f149d37b17..d93f4fa2ad55 100644 --- a/drivers/iio/imu/bmi160/bmi160_i2c.c +++ b/drivers/iio/imu/bmi160/bmi160_i2c.c @@ -68,3 +68,4 @@ module_i2c_driver(bmi160_i2c_driver); MODULE_AUTHOR("Daniel Baluta "); MODULE_DESCRIPTION("BMI160 I2C driver"); MODULE_LICENSE("GPL v2"); +MODULE_IMPORT_NS(IIO_BMI160); diff --git a/drivers/iio/imu/bmi160/bmi160_spi.c b/drivers/iio/imu/bmi160/bmi160_spi.c index 24f7d75c7903..8b573ea99af2 100644 --- a/drivers/iio/imu/bmi160/bmi160_spi.c +++ b/drivers/iio/imu/bmi160/bmi160_spi.c @@ -65,3 +65,4 @@ module_spi_driver(bmi160_spi_driver); MODULE_AUTHOR("Daniel Baluta X-Patchwork-Id: 12869626 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03AFCC433EF for ; Sat, 4 Jun 2022 15:44:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237459AbiFDPoL (ORCPT ); Sat, 4 Jun 2022 11:44:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230097AbiFDPoJ (ORCPT ); Sat, 4 Jun 2022 11:44:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD84D19C2D for ; Sat, 4 Jun 2022 08:44:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 793D460E77 for ; Sat, 4 Jun 2022 15:44:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16FF1C36AE2; Sat, 4 Jun 2022 15:44:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654357447; bh=KX9+n4hNp+7Itd6N6or1zRbKNdRQmjNt0T5pV8ee9dw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eUY+mNUNb/ARC+knWX2jy7OlbKaDvDakta3sZxtIE0OjvCZlq89nFlam9aCqZQzwE txDWfRh36LBFULEhDW2/wIHRvGX2M1lMUQJ+fLbIonosN+42ccJXeA9urvA4DxJ12a l736yOdwP0DCp2e587v8faxuWfJW9RqxZ30nDG95yhiK5ANMdA8+4gM3IHUW6xOSPY YEwyeZImosbgKfND+KKbSIs3CYxIkqxzbhXdboWhNJxzdNtk1qE9jArVbx7ycJM+EC xC/JNiNhb6jBCKkFeHu6UY1IBkqrOI3CTyvh6MXszwmLLsFIperz5U7ese6zZwl5Xu 3dYDC4U3d+alQ== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Jonathan Cameron Subject: [PATCH v2 2/4] iio: pressure: bmp280: Move symbol exports to IIO_BMP280 namespace Date: Sat, 4 Jun 2022 16:53:04 +0100 Message-Id: <20220604155306.422937-3-jic23@kernel.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220604155306.422937-1-jic23@kernel.org> References: <20220604155306.422937-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Avoid unnecessary pollution of the global symbol namespace by moving library functions in to a specific namespace and import that into the drivers that make use of the functions. For more info: https://lwn.net/Articles/760045/ Signed-off-by: Jonathan Cameron Link: https://lore.kernel.org/r/20220220173701.502331-3-jic23@kernel.org --- drivers/iio/pressure/bmp280-core.c | 2 +- drivers/iio/pressure/bmp280-i2c.c | 1 + drivers/iio/pressure/bmp280-regmap.c | 4 ++-- drivers/iio/pressure/bmp280-spi.c | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/iio/pressure/bmp280-core.c b/drivers/iio/pressure/bmp280-core.c index bf8167f43c56..fe7aa81e7cc9 100644 --- a/drivers/iio/pressure/bmp280-core.c +++ b/drivers/iio/pressure/bmp280-core.c @@ -1136,7 +1136,7 @@ int bmp280_common_probe(struct device *dev, return devm_iio_device_register(dev, indio_dev); } -EXPORT_SYMBOL(bmp280_common_probe); +EXPORT_SYMBOL_NS(bmp280_common_probe, IIO_BMP280); static int bmp280_runtime_suspend(struct device *dev) { diff --git a/drivers/iio/pressure/bmp280-i2c.c b/drivers/iio/pressure/bmp280-i2c.c index 35045bd92846..bf4a7a617537 100644 --- a/drivers/iio/pressure/bmp280-i2c.c +++ b/drivers/iio/pressure/bmp280-i2c.c @@ -68,3 +68,4 @@ module_i2c_driver(bmp280_i2c_driver); MODULE_AUTHOR("Vlad Dogaru "); MODULE_DESCRIPTION("Driver for Bosch Sensortec BMP180/BMP280 pressure and temperature sensor"); MODULE_LICENSE("GPL v2"); +MODULE_IMPORT_NS(IIO_BMP280); diff --git a/drivers/iio/pressure/bmp280-regmap.c b/drivers/iio/pressure/bmp280-regmap.c index da136dbadc8f..969698518984 100644 --- a/drivers/iio/pressure/bmp280-regmap.c +++ b/drivers/iio/pressure/bmp280-regmap.c @@ -39,7 +39,7 @@ const struct regmap_config bmp180_regmap_config = { .writeable_reg = bmp180_is_writeable_reg, .volatile_reg = bmp180_is_volatile_reg, }; -EXPORT_SYMBOL(bmp180_regmap_config); +EXPORT_SYMBOL_NS(bmp180_regmap_config, IIO_BMP280); static bool bmp280_is_writeable_reg(struct device *dev, unsigned int reg) { @@ -82,4 +82,4 @@ const struct regmap_config bmp280_regmap_config = { .writeable_reg = bmp280_is_writeable_reg, .volatile_reg = bmp280_is_volatile_reg, }; -EXPORT_SYMBOL(bmp280_regmap_config); +EXPORT_SYMBOL_NS(bmp280_regmap_config, IIO_BMP280); diff --git a/drivers/iio/pressure/bmp280-spi.c b/drivers/iio/pressure/bmp280-spi.c index 41f6cc56d229..4cfaf3e869b8 100644 --- a/drivers/iio/pressure/bmp280-spi.c +++ b/drivers/iio/pressure/bmp280-spi.c @@ -118,3 +118,4 @@ module_spi_driver(bmp280_spi_driver); MODULE_DESCRIPTION("BMP280 SPI bus driver"); MODULE_LICENSE("GPL"); +MODULE_IMPORT_NS(IIO_BMP280); From patchwork Sat Jun 4 15:53:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12869628 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33336CCA47E for ; Sat, 4 Jun 2022 15:44:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237347AbiFDPoN (ORCPT ); Sat, 4 Jun 2022 11:44:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237666AbiFDPoL (ORCPT ); Sat, 4 Jun 2022 11:44:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63EA219C2E for ; Sat, 4 Jun 2022 08:44:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 01B2560E88 for ; Sat, 4 Jun 2022 15:44:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67DFDC385B8; Sat, 4 Jun 2022 15:44:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654357449; bh=QYO8Q/ew86rWoh6O5bHABIqCN03yia7WGDNNEcuwkZ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VAEAuGElqUAkFLQ3Y/DNiW1rYcthDSGe6KkO6cqdcvv+CwRNCUHBGDtQ31cFJs7RA FuUx+bgrO81AV5gRVkn9OcAM3gvy4lU0yIIqRISJDNt5TJdmnGJpV2h3oX5GCOEzRz duxi7sfC+ZiTvG4tebdcTBUm7XwAGHeupYVegU82Lg6rQDpo3DaY7r707/+0L06EeZ dEthuKzRTXNT+2U3UQegxmt/VK6IWMDYrMQXJ+18RTFHtZbX9Yt0xtbkFzu0gO0+BW CR4C1045rN6KIinD+q0PYoS/SV6q1F+NBm2TBkNLQFTIEihV0z8ddMq8JZunRe8V4t jOEwPYRXh6WWA== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Jonathan Cameron , Tomasz Duszynski Subject: [PATCH v2 3/4] iio: chemical: sps30: Move symbol exports into IIO_SPS30 namespace Date: Sat, 4 Jun 2022 16:53:05 +0100 Message-Id: <20220604155306.422937-4-jic23@kernel.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220604155306.422937-1-jic23@kernel.org> References: <20220604155306.422937-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Avoid unnecessary pollution of the global symbol namespace by moving library functions in to a specific namespace and import that into the drivers that make use of the functions. For more info: https://lwn.net/Articles/760045/ Signed-off-by: Jonathan Cameron Cc: Tomasz Duszynski Link: https://lore.kernel.org/r/20220220173701.502331-4-jic23@kernel.org --- drivers/iio/chemical/sps30.c | 2 +- drivers/iio/chemical/sps30_i2c.c | 1 + drivers/iio/chemical/sps30_serial.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/iio/chemical/sps30.c b/drivers/iio/chemical/sps30.c index abd67559e451..814ce0aad1cc 100644 --- a/drivers/iio/chemical/sps30.c +++ b/drivers/iio/chemical/sps30.c @@ -372,7 +372,7 @@ int sps30_probe(struct device *dev, const char *name, void *priv, const struct s return devm_iio_device_register(dev, indio_dev); } -EXPORT_SYMBOL_GPL(sps30_probe); +EXPORT_SYMBOL_NS_GPL(sps30_probe, IIO_SPS30); MODULE_AUTHOR("Tomasz Duszynski "); MODULE_DESCRIPTION("Sensirion SPS30 particulate matter sensor driver"); diff --git a/drivers/iio/chemical/sps30_i2c.c b/drivers/iio/chemical/sps30_i2c.c index d33560ed7184..2aed483a2fde 100644 --- a/drivers/iio/chemical/sps30_i2c.c +++ b/drivers/iio/chemical/sps30_i2c.c @@ -256,3 +256,4 @@ module_i2c_driver(sps30_i2c_driver); MODULE_AUTHOR("Tomasz Duszynski "); MODULE_DESCRIPTION("Sensirion SPS30 particulate matter sensor i2c driver"); MODULE_LICENSE("GPL v2"); +MODULE_IMPORT_NS(IIO_SPS30); diff --git a/drivers/iio/chemical/sps30_serial.c b/drivers/iio/chemical/sps30_serial.c index 3f311d50087c..164f4b3e025c 100644 --- a/drivers/iio/chemical/sps30_serial.c +++ b/drivers/iio/chemical/sps30_serial.c @@ -429,3 +429,4 @@ module_serdev_device_driver(sps30_serial_driver); MODULE_AUTHOR("Tomasz Duszynski "); MODULE_DESCRIPTION("Sensirion SPS30 particulate matter sensor serial driver"); MODULE_LICENSE("GPL v2"); +MODULE_IMPORT_NS(IIO_SPS30); From patchwork Sat Jun 4 15:53:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12869629 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7253C433EF for ; Sat, 4 Jun 2022 15:44:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237810AbiFDPoP (ORCPT ); Sat, 4 Jun 2022 11:44:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237666AbiFDPoO (ORCPT ); Sat, 4 Jun 2022 11:44:14 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ED4419C2D for ; Sat, 4 Jun 2022 08:44:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4318DB806A0 for ; Sat, 4 Jun 2022 15:44:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1D95C34119; Sat, 4 Jun 2022 15:44:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654357451; bh=WhP5+yG4rdIykK8aRzDv4rVYdTLb/IFOv+aB+1LnEXQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ghsl96wMGRjrD/kz48Ua9drQh1PKwp/eH5CjsPamfMwxvR6TLuKw+eeBazNKyBpQE 56rX6A9RgLi4EFGCqF9VQD5eiu+9vLNEt6kfDFuNTaGWDzU8nZIri3HOBu2wIycqcv oTBsyRaA7JLzfzzz+PSuUc4LOg96zHpdv5ZTmVUy1MH1vt4odm1W8MZ4qD2to2dsL3 BO1IeqrgIpDnfYmySvazYfCxODewivbiGBzunPQ1riBP4FOBl7OOzQueelWPYvJZNR LgoDE2LXP02gDCI8GKIlBu9r/caQaZI6uVYqkMl7J2zPRv1H2URfkVa0/TrIRbFT0T dTrDSHNqdmc2w== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Jonathan Cameron , Dmitry Baryshkov , Siddartha Mohanadoss Subject: [PATCH v2 4/4] iio: adc: qcom-vadc: Move symbol exports to IIO_QCOM_VADC namespace Date: Sat, 4 Jun 2022 16:53:06 +0100 Message-Id: <20220604155306.422937-5-jic23@kernel.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220604155306.422937-1-jic23@kernel.org> References: <20220604155306.422937-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Avoid unnecessary pollution of the global symbol namespace by moving library functions in to a specific namespace and import that into the drivers that make use of the functions. For more info: https://lwn.net/Articles/760045/ Signed-off-by: Jonathan Cameron Cc: Dmitry Baryshkov Cc: Siddartha Mohanadoss Link: https://lore.kernel.org/r/20220220173701.502331-6-jic23@kernel.org --- drivers/iio/adc/qcom-pm8xxx-xoadc.c | 1 + drivers/iio/adc/qcom-spmi-adc5.c | 1 + drivers/iio/adc/qcom-spmi-vadc.c | 1 + drivers/iio/adc/qcom-vadc-common.c | 16 ++++++++-------- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/iio/adc/qcom-pm8xxx-xoadc.c b/drivers/iio/adc/qcom-pm8xxx-xoadc.c index 5e9e56821075..e2ef89dcaa5e 100644 --- a/drivers/iio/adc/qcom-pm8xxx-xoadc.c +++ b/drivers/iio/adc/qcom-pm8xxx-xoadc.c @@ -1028,3 +1028,4 @@ module_platform_driver(pm8xxx_xoadc_driver); MODULE_DESCRIPTION("PM8xxx XOADC driver"); MODULE_LICENSE("GPL v2"); MODULE_ALIAS("platform:pm8xxx-xoadc"); +MODULE_IMPORT_NS(IIO_QCOM_VADC); diff --git a/drivers/iio/adc/qcom-spmi-adc5.c b/drivers/iio/adc/qcom-spmi-adc5.c index 87438d1e5c0b..10bb51b648c1 100644 --- a/drivers/iio/adc/qcom-spmi-adc5.c +++ b/drivers/iio/adc/qcom-spmi-adc5.c @@ -925,3 +925,4 @@ module_platform_driver(adc5_driver); MODULE_ALIAS("platform:qcom-spmi-adc5"); MODULE_DESCRIPTION("Qualcomm Technologies Inc. PMIC5 ADC driver"); MODULE_LICENSE("GPL v2"); +MODULE_IMPORT_NS(IIO_QCOM_VADC); diff --git a/drivers/iio/adc/qcom-spmi-vadc.c b/drivers/iio/adc/qcom-spmi-vadc.c index 34202ba52469..cb0c6af091ac 100644 --- a/drivers/iio/adc/qcom-spmi-vadc.c +++ b/drivers/iio/adc/qcom-spmi-vadc.c @@ -935,3 +935,4 @@ MODULE_DESCRIPTION("Qualcomm SPMI PMIC voltage ADC driver"); MODULE_LICENSE("GPL v2"); MODULE_AUTHOR("Stanimir Varbanov "); MODULE_AUTHOR("Ivan T. Ivanov "); +MODULE_IMPORT_NS(IIO_QCOM_VADC); diff --git a/drivers/iio/adc/qcom-vadc-common.c b/drivers/iio/adc/qcom-vadc-common.c index d5209f32adb3..7ca191ea1a65 100644 --- a/drivers/iio/adc/qcom-vadc-common.c +++ b/drivers/iio/adc/qcom-vadc-common.c @@ -662,7 +662,7 @@ int qcom_vadc_scale(enum vadc_scale_fn_type scaletype, return -EINVAL; } } -EXPORT_SYMBOL(qcom_vadc_scale); +EXPORT_SYMBOL_NS(qcom_vadc_scale, IIO_QCOM_VADC); u16 qcom_adc_tm5_temp_volt_scale(unsigned int prescale_ratio, u32 full_scale_code_volt, int temp) @@ -675,7 +675,7 @@ u16 qcom_adc_tm5_temp_volt_scale(unsigned int prescale_ratio, temp); return qcom_vadc_scale_voltage_code(voltage, prescale, full_scale_code_volt, 1000); } -EXPORT_SYMBOL(qcom_adc_tm5_temp_volt_scale); +EXPORT_SYMBOL_NS(qcom_adc_tm5_temp_volt_scale, IIO_QCOM_VADC); u16 qcom_adc_tm5_gen2_temp_res_scale(int temp) { @@ -704,7 +704,7 @@ int qcom_adc5_hw_scale(enum vadc_scale_fn_type scaletype, return scale_adc5_fn[scaletype].scale_fn(prescale, data, adc_code, result); } -EXPORT_SYMBOL(qcom_adc5_hw_scale); +EXPORT_SYMBOL_NS(qcom_adc5_hw_scale, IIO_QCOM_VADC); int qcom_adc5_prescaling_from_dt(u32 numerator, u32 denominator) { @@ -720,7 +720,7 @@ int qcom_adc5_prescaling_from_dt(u32 numerator, u32 denominator) return pre; } -EXPORT_SYMBOL(qcom_adc5_prescaling_from_dt); +EXPORT_SYMBOL_NS(qcom_adc5_prescaling_from_dt, IIO_QCOM_VADC); int qcom_adc5_hw_settle_time_from_dt(u32 value, const unsigned int *hw_settle) @@ -734,7 +734,7 @@ int qcom_adc5_hw_settle_time_from_dt(u32 value, return -EINVAL; } -EXPORT_SYMBOL(qcom_adc5_hw_settle_time_from_dt); +EXPORT_SYMBOL_NS(qcom_adc5_hw_settle_time_from_dt, IIO_QCOM_VADC); int qcom_adc5_avg_samples_from_dt(u32 value) { @@ -743,7 +743,7 @@ int qcom_adc5_avg_samples_from_dt(u32 value) return __ffs(value); } -EXPORT_SYMBOL(qcom_adc5_avg_samples_from_dt); +EXPORT_SYMBOL_NS(qcom_adc5_avg_samples_from_dt, IIO_QCOM_VADC); int qcom_adc5_decimation_from_dt(u32 value, const unsigned int *decimation) { @@ -756,7 +756,7 @@ int qcom_adc5_decimation_from_dt(u32 value, const unsigned int *decimation) return -EINVAL; } -EXPORT_SYMBOL(qcom_adc5_decimation_from_dt); +EXPORT_SYMBOL_NS(qcom_adc5_decimation_from_dt, IIO_QCOM_VADC); int qcom_vadc_decimation_from_dt(u32 value) { @@ -766,7 +766,7 @@ int qcom_vadc_decimation_from_dt(u32 value) return __ffs64(value / VADC_DECIMATION_MIN); } -EXPORT_SYMBOL(qcom_vadc_decimation_from_dt); +EXPORT_SYMBOL_NS(qcom_vadc_decimation_from_dt, IIO_QCOM_VADC); MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("Qualcomm ADC common functionality");