linux/drivers/iio/accel
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
..
adis16201.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adis16209.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adxl313_core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adxl313_i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adxl313_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adxl313.h drivers: iio: accel: adxl312 and adxl314 support 2022-09-21 18:42:53 +01:00
adxl345_core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adxl345_i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adxl345_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adxl345.h iio: accel: adxl345: Add spi-3wire option 2024-04-06 16:18:39 +01:00
adxl355_core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adxl355_i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adxl355_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adxl355.h drivers: iio: accel: Add support for ADXL359 device 2022-11-23 19:44:04 +00:00
adxl367_i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adxl367_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adxl367.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adxl367.h iio: accel: add ADXL367 driver 2022-02-21 19:33:06 +00:00
adxl372_i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adxl372_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adxl372.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adxl372.h iio: adxl372: Add support for I2C communication 2018-09-08 15:54:38 +01:00
adxl380_i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adxl380_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adxl380.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adxl380.h iio: accel: add ADXL380 driver 2024-08-03 10:13:36 +01:00
bma180.c iio: accel: replace s64 __aligned(8) with aligned_s64 2024-10-28 20:04:10 +00:00
bma220_spi.c iio: accel: replace s64 __aligned(8) with aligned_s64 2024-10-28 20:04:10 +00:00
bma400_core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
bma400_i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
bma400_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
bma400.h iio: accel: bma400: Use devm_regulator_bulk_get_enable() 2022-12-28 17:19:45 +00:00
bmc150-accel-core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
bmc150-accel-i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
bmc150-accel-spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
bmc150-accel.h iio: accel: replace s64 __aligned(8) with aligned_s64 2024-10-28 20:04:10 +00:00
bmi088-accel-core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
bmi088-accel-i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
bmi088-accel-spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
bmi088-accel.h iio: accel: bmi088: Add support for bmi090l accel 2022-06-11 14:35:28 +01:00
cros_ec_accel_legacy.c iio: accel: cros_ec_accel_legacy: make use of iio_get_masklength() 2024-07-29 20:31:08 +01:00
da280.c iio: accel: da280: Stop using ACPI_PTR() 2024-01-23 22:06:54 +00:00
da311.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
dmard06.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
dmard09.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
dmard10.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
fxls8962af-core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
fxls8962af-i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
fxls8962af-spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
fxls8962af.h iio: Remove unused declarations 2023-09-12 10:42:03 +01:00
hid-sensor-accel-3d.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
Kconfig iio: accel: kx022a: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig 2024-10-06 16:27:25 +01:00
kionix-kx022a-i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
kionix-kx022a-spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
kionix-kx022a.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
kionix-kx022a.h iio: kx022a: Support ROHM KX132ACR-LBZ 2023-10-05 14:44:06 +01:00
kxcjk-1013.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
kxsd9-i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
kxsd9-spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
kxsd9.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
kxsd9.h iio: accel: kxsd9: Make kxsd9_common_remove() return void 2021-10-19 08:30:45 +01:00
Makefile iio: accel: add ADXL380 driver 2024-08-03 10:13:36 +01:00
mc3230.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
mma7455_core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mma7455_i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mma7455_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mma7455.h iio: accel: mma7455: Make mma7455_core_remove() return void 2021-10-19 08:30:45 +01:00
mma7660.c iio: accel: mma7660: add mount-matrix support 2024-06-13 19:19:22 +01:00
mma8452.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
mma9551_core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mma9551_core.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
mma9551.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mma9553.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
msa311.c iio: accel: replace s64 __aligned(8) with aligned_s64 2024-10-28 20:04:10 +00:00
mxc4005.c iio: accel: replace s64 __aligned(8) with aligned_s64 2024-10-28 20:04:10 +00:00
mxc6255.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
sca3000.c iio: accel: sca3000: use bool for event state 2024-11-03 20:33:44 +00:00
sca3300.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
ssp_accel_sensor.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
st_accel_buffer.c iio:st-sensors: Remove duplicate MODULE_* 2022-02-18 11:36:54 +00:00
st_accel_core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
st_accel_i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
st_accel_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
st_accel.h iio: accel: st_accel: add support for LIS2DS12 2024-06-25 21:04:49 +01:00
stk8ba50.c iio: accel: replace s64 __aligned(8) with aligned_s64 2024-10-28 20:04:10 +00:00
stk8312.c iio: accel: replace s64 __aligned(8) with aligned_s64 2024-10-28 20:04:10 +00:00