linux/drivers/iio/dac
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
..
ad3552r-common.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad3552r-hs.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad3552r-hs.h iio: dac: ad3552r: add high-speed platform driver 2024-11-03 20:33:32 +00:00
ad3552r.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad3552r.h iio: dac: ad3552r: add high-speed platform driver 2024-11-03 20:33:32 +00:00
ad5064.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
ad5360.c iio: dac: ad5360: Fix alignment for DMA safety 2022-06-14 11:53:15 +01:00
ad5380.c iio: dac: ad5380: drop driver remove callbacks 2024-11-01 14:54:45 +00:00
ad5421.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
ad5446.c iio: dac: ad5446: drop driver remove callbacks 2024-11-01 14:54:46 +00:00
ad5449.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
ad5504.c iio: dac: ad5504: drop driver remove callback 2024-11-01 14:54:46 +00:00
ad5592r-base.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad5592r-base.h iio: dac: ad5592r: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad5592r.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad5593r.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad5624r_spi.c iio: dac: ad5624r: drop driver remove callback 2024-11-01 14:54:46 +00:00
ad5624r.h iio: dac: ad5624r: use devm_regulator_get_enable_read_voltage() 2024-11-01 14:54:46 +00:00
ad5686-spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad5686.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad5686.h iio: dac: ad5686: Add support for AD5337 2022-12-28 17:19:45 +00:00
ad5696-i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad5755.c iio: adc: ad5755: use scoped device_for_each_child_node() 2024-10-05 12:09:14 +01:00
ad5758.c iio:dac:ad5758: Drop unused of specific headers. 2021-12-12 17:12:34 +00:00
ad5761.c iio: dac: ad5761: drop driver remove callback 2024-11-01 14:54:46 +00:00
ad5764.c iio: dac: ad5764: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad5766.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
ad5770r.c iio: dac: ad5770r: use devm_regulator_get_enable_read_voltage() 2024-11-01 14:54:46 +00:00
ad5791.c iio: dac: ad5791: Use devm_iio_device_register 2024-11-03 20:33:42 +00:00
ad7293.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
ad7303.c iio: dac: ad7303: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad8460.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ad8801.c iio: dac: ad8801: Fix alignment for DMA safety 2022-06-14 11:53:17 +01:00
ad9739a.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adi-axi-dac.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
cio-dac.c 1st set of IIO new device support, features and cleanups for the 6.4 cycle. 2023-04-12 09:45:34 +02:00
dpot-dac.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
ds4424.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
Kconfig Merge commit '9365f0de4303f82ed4c2db1c39d3de824b249d80' into HEAD 2024-11-09 10:39:52 +00:00
lpc18xx_dac.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
ltc1660.c iio: dac: ltc1660: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() 2022-07-18 18:48:18 +01:00
ltc2632.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
ltc2664.c iioc: dac: ltc2664: Fix span variable usage in ltc2664_channel_config() 2024-10-06 16:31:46 +01:00
ltc2688.c iio: dac: ltc2688: Constify struct regmap_bus 2024-07-29 20:31:10 +01:00
m62332.c iio: dac: m62332: Get platform data via dev_get_platdata() 2024-09-30 09:21:00 +01:00
Makefile iio: dac: ad3552r: add high-speed platform driver 2024-11-03 20:33:32 +00:00
max517.c iio: dac: max517: Get platform data via dev_get_platdata() 2024-09-30 09:21:00 +01:00
max5522.c iio: dac: max5522: simplify with spi_get_device_match_data() 2024-06-13 19:19:24 +01:00
max5821.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
mcp4725.c iio: dac: mcp4725: Add dac_reg_offset to struct mcp4725_chip_info 2023-09-12 10:42:04 +01:00
mcp4728.c iio: dac: mcp4728: use devm_regulator_get_enable_read_voltage() 2024-08-03 10:13:38 +01:00
mcp4821.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
mcp4922.c iio: dac: mcp4922: drop remove() callback 2024-08-03 10:13:38 +01:00
stm32-dac-core.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
stm32-dac-core.h iio: stm32: Adopt SPDX identifier 2018-01-08 16:03:41 +01:00
stm32-dac.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
ti-dac082s085.c iio: dac: ti-dac082s085: Fix alignment for DMA safety 2022-06-14 11:53:17 +01:00
ti-dac5571.c iio: dac: ti-dac5571: Add DAC081C081 support 2024-03-28 13:22:15 +00:00
ti-dac7311.c iio: dac: ti-dac7311: Add check for spi_setup 2024-07-29 20:31:13 +01:00
ti-dac7612.c iio: dac: ti-dac7612: Fix alignment for DMA safety 2022-06-14 11:53:17 +01:00
vf610_dac.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00