linux/drivers/iio/adc
Peter Zijlstra cdd30ebb1b module: Convert symbol namespace to string literal
Clean up the existing export namespace code along the same lines of
commit 33def8498f ("treewide: Convert macro and uses of __section(foo)
to __section("foo")") and for the same reason, it is not desired for the
namespace argument to be a macro expansion itself.

Scripted using

  git grep -l -e MODULE_IMPORT_NS -e EXPORT_SYMBOL_NS | while read file;
  do
    awk -i inplace '
      /^#define EXPORT_SYMBOL_NS/ {
        gsub(/__stringify\(ns\)/, "ns");
        print;
        next;
      }
      /^#define MODULE_IMPORT_NS/ {
        gsub(/__stringify\(ns\)/, "ns");
        print;
        next;
      }
      /MODULE_IMPORT_NS/ {
        $0 = gensub(/MODULE_IMPORT_NS\(([^)]*)\)/, "MODULE_IMPORT_NS(\"\\1\")", "g");
      }
      /EXPORT_SYMBOL_NS/ {
        if ($0 ~ /(EXPORT_SYMBOL_NS[^(]*)\(([^,]+),/) {
  	if ($0 !~ /(EXPORT_SYMBOL_NS[^(]*)\(([^,]+), ([^)]+)\)/ &&
  	    $0 !~ /(EXPORT_SYMBOL_NS[^(]*)\(\)/ &&
  	    $0 !~ /^my/) {
  	  getline line;
  	  gsub(/[[:space:]]*\\$/, "");
  	  gsub(/[[:space:]]/, "", line);
  	  $0 = $0 " " line;
  	}

  	$0 = gensub(/(EXPORT_SYMBOL_NS[^(]*)\(([^,]+), ([^)]+)\)/,
  		    "\\1(\\2, \"\\3\")", "g");
        }
      }
      { print }' $file;
  done

Requested-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://mail.google.com/mail/u/2/#inbox/FMfcgzQXKWgMmjdFwwdsfgxzKpVHWPlc
Acked-by: Greg KH <gregkh@linuxfoundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2024-12-02 11:34:44 -08:00
..
ab8500-gpadc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
ad799x.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
ad4000.c IIO: 2nd set of new device support, features and cleanup for 6.13 2024-11-09 14:34:48 +01:00
ad4130.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
ad4695.c iio: adc: ad4695: implement calibration support 2024-09-03 18:49:43 +01:00
ad7091r5.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad7091r8.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad7091r-base.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad7091r-base.h iio: adc: Fix typos in comments across various files 2024-10-05 12:09:15 +01:00
ad7124.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad7173.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad7192.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad7266.c iio: adc: ad7266: Get platform data via dev_get_platdata() 2024-09-30 09:21:00 +01:00
ad7280a.c iio: adc: ad7280a: use IIO_DIFF_EVENT_CODE macro helper 2024-11-03 20:33:45 +00:00
ad7291.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
ad7292.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
ad7298.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
ad7380.c iio: adc: ad7380: add support for adaq4370-4 and adaq4380-4 2024-11-09 10:41:55 +00:00
ad7476.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
ad7606_par.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad7606_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad7606.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad7606.h iio: adc: ad7606: add support for AD760{7,8,9} parts 2024-10-28 20:04:11 +00:00
ad7625.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad7766.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
ad7768-1.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
ad7779.c drivers: iio: adc: add support for ad777x family 2024-10-28 20:04:10 +00:00
ad7780.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad7791.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad7793.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad7887.c iio: adc: Fix typos in comments across various files 2024-10-05 12:09:15 +01:00
ad7923.c iio: adc: ad7923: Fix buffer overflow for tx_buf and ring_xfer 2024-10-31 21:02:07 +00:00
ad7944.c iio: adc: ad7944: add namespace to T_QUIET_NS 2024-10-10 19:07:57 +01:00
ad7949.c iio: adc: ad7949: Fix error message 2022-07-16 18:50:24 +01:00
ad9467.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad_sigma_delta.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adi-axi-adc.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
aspeed_adc.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
at91_adc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
at91-sama5d2_adc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
axp20x_adc.c Linux 6.12-rc2 2024-10-12 11:43:29 +01:00
axp288_adc.c iio: adc: Constify struct iio_map 2024-09-30 09:21:02 +01:00
bcm_iproc_adc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
berlin2-adc.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
cc10001_adc.c iio: adc: cc10001_adc: make use of iio_for_each_active_channel() 2024-08-03 10:13:39 +01:00
cpcap-adc.c iio: adc: cpcap-adc: make use of regmap_clear_bits(), regmap_set_bits() 2024-06-25 21:04:44 +01:00
da9150-gpadc.c iio: adc: Convert to IIO_MAP() 2024-09-30 09:21:02 +01:00
dln2-adc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
envelope-detector.c iio:adc:envelope-detector: Switch from of headers to mod_devicetable.h 2021-12-12 17:13:11 +00:00
ep93xx_adc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
exynos_adc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
fsl-imx25-gcq.c iio: adc: fsl-imx25-gcq: make use of regmap_clear_bits(), regmap_set_bits() 2024-06-25 21:04:44 +01:00
gehc-pmc-adc.c iio: adc: Add support for the GE HealthCare PMC ADC 2024-10-06 14:00:15 +01:00
hi8435.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
hx711.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
imx7d_adc.c iio: adc: Remove redundant dev_err_probe() 2023-07-29 12:13:17 +01:00
imx8qxp-adc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
imx93_adc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
ina2xx-adc.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
ingenic-adc.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
intel_mrfld_adc.c Linux 6.12-rc2 2024-10-12 11:43:29 +01:00
Kconfig iio: adc: Remove "default n" entries 2024-10-28 20:04:10 +00:00
lp8788_adc.c iio: adc: Convert to IIO_MAP() 2024-09-30 09:21:02 +01:00
lpc18xx_adc.c iio: adc: lpc18xx: Benefit from devm_clk_get_enabled() to simplify 2022-08-15 22:30:02 +01:00
lpc32xx_adc.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
ltc2309.c iio: adc: ltc2309: Fix endian type passed to be16_to_cpu() 2024-06-28 20:04:18 +01:00
ltc2471.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
ltc2485.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
ltc2496.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
ltc2497-core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ltc2497.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
ltc2497.h module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
Makefile drivers: iio: adc: add support for ad777x family 2024-10-28 20:04:10 +00:00
max1027.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
max1118.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
max1241.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
max1363.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
max9611.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
max11100.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
max11205.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
max11410.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
max34408.c iio: adc: Fix typos in comments across various files 2024-10-05 12:09:15 +01:00
max77541-adc.c iio: adc: max77541: Add ADI MAX77541 ADC Support 2023-06-28 15:18:11 +01:00
mcp320x.c iio: adc: mcp320x: Drop vendorless compatible strings 2024-09-03 18:49:44 +01:00
mcp3422.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
mcp3564.c iio: adc: mcp3564: use devm_regulator_get_enable_read_voltage() 2024-08-03 10:13:43 +01:00
mcp3911.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
men_z188_adc.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
meson_saradc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
mp2629_adc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
mt6359-auxadc.c iio: adc: Add support for MediaTek MT6357/8/9 Auxiliary ADC 2024-07-01 19:38:48 +01:00
mt6360-adc.c Linux 6.12-rc2 2024-10-12 11:43:29 +01:00
mt6370-adc.c iio: adc: mt6370: Fix ibus and ibat scaling value of some specific vendor ID chips 2023-05-13 17:54:56 +01:00
mt6577_auxadc.c iio: adc: mt6577_auxadc: Fix kernel panic on suspend 2023-10-11 15:54:40 +01:00
mxs-lradc-adc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
nau7802.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
npcm_adc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
pac1921.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
pac1934.c iio: adc: pac1934: Replace strange way of checking type of enumeration 2024-10-28 20:04:11 +00:00
palmas_gpadc.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
qcom-pm8xxx-xoadc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
qcom-spmi-adc5.c iio: adc: qcom-spmi-adc5: Tidy up adc5_get_fw_data() error messages 2024-10-05 12:19:01 +01:00
qcom-spmi-iadc.c iio: adc: Explicitly include correct DT includes 2023-07-23 13:38:13 +01:00
qcom-spmi-rradc.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
qcom-spmi-vadc.c iio: adc: qcom-spmi-vadc: use scoped device_for_each_child_node() 2024-10-05 12:09:14 +01:00
qcom-vadc-common.c iio: adc: qcom-vadc-common: add reverse scaling for PMIC5 Gen2 ADC_TM 2022-05-19 12:11:51 +02:00
rcar-gyroadc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
rn5t618-adc.c iio: adc: Constify struct iio_map 2024-09-30 09:21:02 +01:00
rockchip_saradc.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
rtq6056.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
rzg2l_adc.c iio: adc: rzg2l_adc: Use device_for_each_child_node_scoped() 2024-03-25 19:50:10 +00:00
sc27xx_adc.c iio: adc: sc27xx_adc: make use of regmap_clear_bits(), regmap_set_bits() 2024-06-25 21:04:45 +01:00
sd_adc_modulator.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
sophgo-cv1800b-adc.c iio: adc: sophgo-saradc: Add driver for Sophgo CV1800B SARADC 2024-09-03 20:05:03 +01:00
spear_adc.c iio: adc: spear_adc: Make use of device properties 2024-03-25 20:10:11 +00:00
stm32-adc-core.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
stm32-adc-core.h iio: adc: stm32-adc: smart calibration support 2022-11-23 20:56:13 +00:00
stm32-adc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
stm32-dfsdm-adc.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
stm32-dfsdm-core.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
stm32-dfsdm.h iio: adc: stm32-dfsdm: add id registers support 2023-01-08 13:11:03 +00:00
stmpe-adc.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
sun4i-gpadc-iio.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
sun20i-gpadc-iio.c iio: adc: sun20i-gpadc: use scoped device_for_each_child_node() 2024-10-05 12:09:14 +01:00
ti_am335x_adc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
ti-adc081c.c iio: adc: ti-adc081c: Simplify probe() 2023-09-12 10:42:04 +01:00
ti-adc084s021.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
ti-adc108s102.c iio: adc: ti-adc108s102: use devm_regulator_get_enable_read_voltage() 2024-06-25 21:04:51 +01:00
ti-adc128s052.c iio: adc: ti-adc128s052: Sort headers 2023-01-08 12:12:10 +00:00
ti-adc161s626.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
ti-adc0832.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
ti-adc12138.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
ti-ads124s08.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
ti-ads131e08.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
ti-ads1015.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
ti-ads1100.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
ti-ads1119.c iio: adc: ti-ads1119: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-10-05 12:09:14 +01:00
ti-ads1298.c Linux 6.12-rc2 2024-10-12 11:43:29 +01:00
ti-ads7924.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
ti-ads7950.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
ti-ads8344.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
ti-ads8688.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
ti-lmp92064.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
ti-tlc4541.c iio: adc: standardize on formatting for id match tables 2024-09-05 19:27:13 +01:00
ti-tsc2046.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
twl4030-madc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
twl6030-gpadc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
vf610_adc.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
viperboard_adc.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
xilinx-ams.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
xilinx-xadc-core.c iio: adc: xilinx-xadc-core: use new '.masklength' accessors 2024-08-03 10:13:43 +01:00
xilinx-xadc-events.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
xilinx-xadc.h iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00