linux-stable/drivers/iio/proximity
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
..
as3935.c iio: Rename iio_trigger_poll_chained and add kernel-doc 2023-03-11 12:18:29 +00:00
aw96103.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
cros_ec_mkbp_proximity.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
hx9023s.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
irsd200.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
isl29501.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
Kconfig iio: proximity: mb1232: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig 2024-10-06 16:30:15 +01:00
Makefile iio: proximity: aw96103: Add support for aw96103/aw96105 proximity sensor 2024-09-05 19:27:06 +01:00
mb1232.c iio: mb1232: relax return value check for IRQ get 2023-08-01 18:55:46 +01:00
ping.c iio: proximity: ping: fix typo in comment 2022-06-11 14:35:27 +01:00
pulsedlight-lidar-lite-v2.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
rfd77402.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
srf04.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
srf08.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
sx9310.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
sx9324.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
sx9360.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
sx9500.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
sx_common.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
sx_common.h iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
vcnl3020.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
vl53l0x-i2c.c Linux 6.12-rc2 2024-10-12 11:43:29 +01:00