Jonathan Cameron
20cadda37b
iio:light:stk3310: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Icenowy Zheng <icenowy@aosc.io >
Cc: Luca Weiss <luca@z3ntu.xyz >
Cc: Martijn Braam <martijn@brixit.nl >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-25-jic23@kernel.org
2022-02-18 11:45:30 +00:00
Jonathan Cameron
d03da05124
iio:light:ltr501: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Maslov Dmitry <maslovdmitry@seeed.cc >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-24-jic23@kernel.org
2022-02-18 11:45:29 +00:00
Jonathan Cameron
fb20995d5f
iio:light:jsa1212: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-23-jic23@kernel.org
2022-02-18 11:45:29 +00:00
Jonathan Cameron
e9b7671262
iio:light:isl29125: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-22-jic23@kernel.org
2022-02-18 11:45:29 +00:00
Jonathan Cameron
b020281dda
iio:light:isl29018: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr()
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Anson Huang <anson.huang@nxp.com >
Cc: Brian Masney <masneyb@onstation.org >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-21-jic23@kernel.org
2022-02-18 11:45:29 +00:00
Jonathan Cameron
5f3521b8eb
iio:light:cm3232: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based config guards. Also switch to SIMPLE_DEV_PM_OPS rather
than opencoding the same.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-20-jic23@kernel.org
2022-02-18 11:45:29 +00:00
Jonathan Cameron
2f2207a6e6
iio:light:apds9300: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-19-jic23@kernel.org
2022-02-18 11:45:29 +00:00
Jonathan Cameron
90b8c2c8f9
iio:dac:vf610: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-18-jic23@kernel.org
2022-02-18 11:45:29 +00:00
Jonathan Cameron
bb08abc740
iio:common:ssp: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of ifdef based config guards. Also switch to SIMPLE_DEV_PM_OPS
rather than open coding the structure.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-17-jic23@kernel.org
2022-02-18 11:45:29 +00:00
Jonathan Cameron
9cbeee0fac
iio:adc:vf610: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-16-jic23@kernel.org
2022-02-18 11:43:12 +00:00
Jonathan Cameron
d3a6c17e68
iio:adc:twl6030: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-15-jic23@kernel.org
2022-02-18 11:43:12 +00:00
Jonathan Cameron
cc0595a9b6
iio:adc:rockchip: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Heiko Stuebner <heiko.stuebner@theobroma-systems.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-14-jic23@kernel.org
2022-02-18 11:43:12 +00:00
Jonathan Cameron
3f1a9c392d
iio:adc:palmas_gpadc: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr()
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
In this case SIMPLE_DEV_PM_OPS() could have been used previously.
Now we have DEFINE_SIMPLE_DEV_PM_OPS() which also deals with letting
the compiler remove the structure and functions so use that instead.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-13-jic23@kernel.org
2022-02-18 11:43:11 +00:00
Jonathan Cameron
a3c185d9ae
iio:adc:exynos_adc: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr()
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com >
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-12-jic23@kernel.org
2022-02-18 11:43:11 +00:00
Jonathan Cameron
19e2ed8040
iio:adc:at91-adc: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com >
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Ludovic Desroches <ludovic.desroches@microchip.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-11-jic23@kernel.org
2022-02-18 11:43:11 +00:00
Jonathan Cameron
0c74ef3512
iio:accel:stk8ba50: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-10-jic23@kernel.org
2022-02-18 11:43:11 +00:00
Jonathan Cameron
abbdba86f8
iio:accel:mma9553: Switch from CONFIG_PM guards to pm_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM support is simpler and less error prone than the
use of #ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-9-jic23@kernel.org
2022-02-18 11:43:11 +00:00
Jonathan Cameron
81e566f9c0
iio:accel:mma9551: Switch from CONFIG_PM guards to pm_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM support is simpler and less error prone than the
use of #ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-8-jic23@kernel.org
2022-02-18 11:43:11 +00:00
Jonathan Cameron
812c5f31b1
iio:accel:mma7660: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr()
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-7-jic23@kernel.org
2022-02-18 11:43:11 +00:00
Jonathan Cameron
4929ddd0a4
iio:accel:mc3230: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Hans de Goede <hdegoede@redhat.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-6-jic23@kernel.org
2022-02-18 11:43:11 +00:00
Jonathan Cameron
50bc5e7851
iio:accel:dmard10: Switch from CONFIG_PM guards to pm_sleep_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-5-jic23@kernel.org
2022-02-18 11:43:11 +00:00
Jonathan Cameron
8aa26e20cf
iio:accel:dmard06: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-4-jic23@kernel.org
2022-02-18 11:43:11 +00:00
Jonathan Cameron
ff9231c7eb
iio:accel:da280: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-3-jic23@kernel.org
2022-02-18 11:43:11 +00:00
Jonathan Cameron
5d0e9e22e4
iio:accel:da311: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc
...
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Link: https://lore.kernel.org/r/20220130193147.279148-2-jic23@kernel.org
2022-02-18 11:43:11 +00:00
Jonathan Cameron
146b43d9f1
iio:chemical:bme680: Move exports to IIO_BME680 namespace
...
In order to avoid unnecessary pollution of the global symbol namespace
move the common/library functions into a specific namespace and import
that into the bus specific device drivers that use them.
For more information see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Himanshu Jha <himanshujha199640@gmail.com >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Link: https://lore.kernel.org/r/20220130205701.334592-17-jic23@kernel.org
2022-02-18 11:42:27 +00:00
Jonathan Cameron
cfaa5482b3
iio:light:st_uvis25: Move exports to IIO_UVIS25 namespace
...
In order to avoid unnecessary pollution of the global symbol namespace
move the common/library functions into a specific namespace and import
that into the bus specific device drivers that use them.
For more information see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Link: https://lore.kernel.org/r/20220130205701.334592-16-jic23@kernel.org
2022-02-18 11:42:27 +00:00
Jonathan Cameron
7e615caf5c
iio:magnetometer:hmc5843: Move exports to IIO_HMC5843 namespace
...
In order to avoid unnecessary pollution of the global symbol namespace
move the common/library functions into a specific namespace and import
that into the bus specific device drivers that use them.
For more information see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Link: https://lore.kernel.org/r/20220130205701.334592-15-jic23@kernel.org
2022-02-18 11:42:27 +00:00
Jonathan Cameron
47d6cae0d0
iio:magnetometer:bmc150: Move exports to IIO_BMC150_MAGN namespace
...
In order to avoid unnecessary pollution of the global symbol namespace
move the common/library functions into a specific namespace and import
that into the bus specific device drivers that use them.
Note the MAGN postfix here is reflecting that this driver is only
responsible for part of the BMC150 device.
For more information see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Link: https://lore.kernel.org/r/20220130205701.334592-14-jic23@kernel.org
2022-02-18 11:42:27 +00:00
Jonathan Cameron
230ee6c69c
iio:magnetometer:rm3100: Move exports to IIO_RM3100 namespace
...
In order to avoid unnecessary pollution of the global symbol namespace
move the common/library functions into a specific namespace and import
that into the bus specific device drivers that use them.
For more information see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Song Qiang <songqiang1304521@gmail.com >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Link: https://lore.kernel.org/r/20220130205701.334592-13-jic23@kernel.org
2022-02-18 11:42:27 +00:00
Jonathan Cameron
c7c848b05f
iio:pressure:mpl115: Move exports into IIO_MPL115 namespace
...
In order to avoid unnecessary pollution of the global symbol namespace
move the common/library functions into a specific namespace and import
that into the bus specific device drivers that use them.
For more information see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Link: https://lore.kernel.org/r/20220130205701.334592-12-jic23@kernel.org
2022-02-18 11:42:27 +00:00
Jonathan Cameron
1980d4a1ba
iio:pressure:ms5611: Move exports into IIO_MS5611 namespace
...
In order to avoid unnecessary pollution of the global symbol namespace
move the common/library functions into a specific namespace and import
that into the bus specific device drivers that use them.
For more information see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Tomasz Duszynski <tduszyns@gmail.com >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Link: https://lore.kernel.org/r/20220130205701.334592-11-jic23@kernel.org
2022-02-18 11:42:26 +00:00
Jonathan Cameron
c8629ec92c
iio:pressure:zpa2326: Move exports into IIO_ZPA2326 namespace
...
In order to avoid unnecessary pollution of the global symbol namespace
move the common/library functions into a specific namespace and import
that into the bus specific device drivers that use them.
For more information see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Link: https://lore.kernel.org/r/20220130205701.334592-10-jic23@kernel.org
2022-02-18 11:42:26 +00:00
Jonathan Cameron
6c9304d6af
iio:imu:adis: Move exports into IIO_ADISLIB namespace
...
In order to avoid unneessary pollution of the global symbol namespace
move the common/library functions into a specific namespace and import
that into the various specific device drivers that use them.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Lars-Peter Clausen <lars@metafoo.de >
Cc: Song Bao Hua (Barry Song) <song.bao.hua@hisilicon.com >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Link: https://lore.kernel.org/r/20220130205701.334592-9-jic23@kernel.org
2022-02-18 11:42:26 +00:00
Jonathan Cameron
2ebc23b34c
iio:dac:ad5686: Move exports into IIO_AD5686 namespace
...
Note these are used in the related ad5696-i2c drivers as well as the
more obviously connected ad5686-spi driver.
In order to avoid unnecessary pollution of the global symbol namespace
move the common/library functions into a specific namespace and import
that into the various specific device drivers that use them.
For more information see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Link: https://lore.kernel.org/r/20220130205701.334592-8-jic23@kernel.org
2022-02-18 11:42:26 +00:00
Jonathan Cameron
4dcd738473
iio:dac:ad5592r: Move exports into IIO_AD5592R namespace
...
In order to avoid unnecessary pollution of the global symbol namespace
move the common/library functions into a specific namespace and import
that into the various specific device drivers that use them.
For more information see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Paul Cercueil <paul@crapouillou.net >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Link: https://lore.kernel.org/r/20220130205701.334592-7-jic23@kernel.org
2022-02-18 11:42:26 +00:00
Jonathan Cameron
0a1b56b7b3
iio:common:ssp_sensors: Move exports into IIO_SSP_SENSORS namespace
...
In order to avoid unnecessary pollution of the global symbol namespace
move the common/library functions into a specific namespace and import
that into the various specific device drivers that use them.
For more information see https://lwn.net/Articles/760045/
Both the exports used between the two common modules and the individual
drivers are moved to a single namespace as greater granularity does
not feel useful.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Link: https://lore.kernel.org/r/20220130205701.334592-6-jic23@kernel.org
2022-02-18 11:42:26 +00:00
Jonathan Cameron
a7f6cecfef
iio:common:meas-spec: Move exports into IIO_MEAS_SPEC_SENSORS
...
The obvious choice of ms_sensors felt rather too likely to clash with other
namespaces introduced in future, hence the longer abbreviation.
In order to avoid unnecessary pollution of the global symbol namespace
move the common/library functions into a specific namespace and import
that into the various specific device drivers that use them.
For more information see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com >
Cc: William Markezana <william.markezana@meas-spec.com >
Cc: Ludovic Tancerel <ludovic.tancerel@maplehightech.com >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Link: https://lore.kernel.org/r/20220130205701.334592-5-jic23@kernel.org
2022-02-18 11:42:26 +00:00
Jonathan Cameron
59cea5bc7c
iio:adc:ad76060: Move exports into IIO_AD7606 namespace.
...
In order to avoid unnecessary pollution of the global symbol namespace
move the core/library functions into a specific namespace and import
that into the various bus specific device drivers that use them.
For more information see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Link: https://lore.kernel.org/r/20220130205701.334592-4-jic23@kernel.org
2022-02-18 11:42:26 +00:00
Jonathan Cameron
8a0080af84
iio:adc:ad7091r: Move exports into IIO_AD7091R namespace.
...
In order to avoid unnecessary pollution of the global symbol namespace
move the core/library functions into a specific namespace and import
that into the various specific device drivers that use them.
For more information see https://lwn.net/Articles/760045/
An alternative here would be to conclude that we are unlikely to see
support for the other ad7091r parts in the near future and just merge
the two modules into one supporting just the i2c -5 variant.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Paul Cercueil <paul@crapouillou.net >
Reviewed-by: Paul Cercueil <paul@crapouillou.net >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Link: https://lore.kernel.org/r/20220130205701.334592-3-jic23@kernel.org
2022-02-18 11:42:26 +00:00
Jonathan Cameron
ef80772976
iio:adc:ad_sigma_delta: Move exports into IIO_AD_SIGMA_DELTA namespace
...
In order to avoid unnecessary pollution of the global symbol namespace
move the core/library functions into a specific namespace and import
that into the various specific device drivers that use them.
For more information see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Renato Lui Geh <renatogeh@gmail.com >
Cc: Michael Hennerich <Michael.Hennerich@analog.com >
Cc: Lars-Peter Clausen <lars@metafoo.de >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Link: https://lore.kernel.org/r/20220130205701.334592-2-jic23@kernel.org
2022-02-18 11:42:26 +00:00
Jonathan Cameron
0805b5121f
iio:st-sensors: Move exports into IIO_ST_SENSORS namespace
...
To avoid unnecessary pollution of the global symbol namespace move the
driver core and type specific core exports into their a new namespace
and import that where needed.
For more info see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Andy Shevchenko <andy.shevchenko@gmail.com >
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Denis Ciocca <denis.ciocca@st.com >
Link: https://lore.kernel.org/r/20220116180535.2367780-14-jic23@kernel.org
2022-02-18 11:36:54 +00:00
Jonathan Cameron
d4786e7df0
iio:st-sensors: Remove duplicate MODULE_*
...
The core module and type specific core modules are made up of
several files. There is no benefit in duplicating the MODULE_* macros
in each file so remove them.
Noticed whilst adding MODULE_IMPORT_NS() as I missed some files and
it still worked, making it clear not all of these blocks were needed.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Andy Shevchenko <andy.shevchenko@gmail.com >
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Denis Ciocca <denis.ciocca@st.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Link: https://lore.kernel.org/r/20220116180535.2367780-13-jic23@kernel.org
2022-02-18 11:36:54 +00:00
Jonathan Cameron
fbbd286c16
iio:accel:fxl8962af: Move exports into IIO_FXL8962AF namespace
...
To avoid unnecessary pollution of the global symbol namespace move the
driver core exports into their own namespace and import that into the two
bus modules.
For more info see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Sean Nyekjaer <sean@geanix.com >
Reviewed-by: Sean Nyekjaer <sean@geanix.com >
Link: https://lore.kernel.org/r/20220116180535.2367780-12-jic23@kernel.org
2022-02-18 11:36:54 +00:00
Jonathan Cameron
3bd072d118
iio:accel:bmi088: Move exports into IIO_BMI088 namespace
...
To avoid unnecessary pollution of the global symbol namespace move the
driver core exports into their own namespace and import that into the two
bus modules.
For more info see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Mike Looijmans <mike.looijmans@topic.nl >
Link: https://lore.kernel.org/r/20220116180535.2367780-11-jic23@kernel.org
2022-02-18 11:36:54 +00:00
Jonathan Cameron
26b74d852f
iio:accel:bmc150: Move exports into IIO_BMC150 namespace
...
To avoid unnecessary pollution of the global symbol namespace move the
driver core exports into their own namespace and import that into the two
bus modules.
For more info see https://lwn.net/Articles/760045/
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com >
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Link: https://lore.kernel.org/r/20220116180535.2367780-10-jic23@kernel.org
2022-02-18 11:36:54 +00:00
Jonathan Cameron
489c75af0f
iio:accel:adxl372: Move exports into IIO_ADXL372 namespace
...
To avoid unnecessary pollution of the global symbol namespace move the
driver core exports into their own namespace and import that into the two
bus modules.
For more info see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Link: https://lore.kernel.org/r/20220116180535.2367780-9-jic23@kernel.org
2022-02-18 11:36:54 +00:00
Jonathan Cameron
fe2fe330e0
iio:accel:adxl355: Move exports into IIO_ADXL355 namespace
...
To avoid unnecessary pollution of the global symbol namespace move the
driver core exports into their own namespace and import that into the two
bus modules.
For more info see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Puranjay Mohan <puranjay12@gmail.com >
Link: https://lore.kernel.org/r/20220116180535.2367780-8-jic23@kernel.org
2022-02-18 11:36:54 +00:00
Jonathan Cameron
0a18114d3f
iio:accel:adxl345: Move exports into IIO_ADXL345 namespace
...
To avoid unnecessary pollution of the global symbol namespace move the
driver core exports into their own namespace and import that into the two
bus modules.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Link: https://lore.kernel.org/r/20220116180535.2367780-7-jic23@kernel.org
2022-02-18 11:36:54 +00:00
Jonathan Cameron
fa4df5a903
iio:accel:adxl313: Move exports into IIO_ADXL313 namespace
...
In order to avoid unnecessary pollution of the global symbol namespace
move the driver core exports into their own namespace and import
that into the two bus modules.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Lucas Stankus <lucas.p.stankus@gmail.com >
Link: https://lore.kernel.org/r/20220116180535.2367780-6-jic23@kernel.org
2022-02-18 11:36:54 +00:00
Jonathan Cameron
f9c02c9485
iio:accel:bma400: Move exports into IIO_BMA400 namespace
...
In order to avoid unnecessary pollution of the global symbol namespace
move the core bma400 functions into a bma400 specific namespace
and import that into the two bus modules.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Cc: Linus Walleij <linus.walleij@linaro.org >
Link: https://lore.kernel.org/r/20220116180535.2367780-5-jic23@kernel.org
2022-02-18 11:36:53 +00:00