linux-stable/drivers/iio/pressure
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
..
abp060mg.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
bmp280-core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
bmp280-i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
bmp280-regmap.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
bmp280-spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
bmp280.h iio: pressure: bmp280: Move bmp085 interrupt to new configuration 2024-10-21 19:19:25 +01:00
cros_ec_baro.c iio: cros: Register FIFO callback after sensor is registered 2022-07-18 18:29:13 +01:00
dlhl60d.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
dps310.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
hid-sensor-press.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hp03.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
hp206c.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
hsc030pa_i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hsc030pa_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hsc030pa.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hsc030pa.h iio: pressure: hsc030pa add triggered buffer 2024-02-19 19:32:22 +00:00
icp10100.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
Kconfig iio: pressure: bm1390: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig 2024-10-06 16:30:02 +01:00
Makefile iio: pressure: Add driver for Sensirion SDP500 2024-08-03 10:13:44 +01:00
mpl115_i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mpl115_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mpl115.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mpl115.h iio: pressure: mpl115: Implementing low power mode by shutdown gpio 2022-11-23 19:44:00 +00:00
mpl3115.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
mprls0025pa_i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mprls0025pa_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mprls0025pa.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mprls0025pa.h iio: pressure: mprls0025pa refactor to split core and i2c parts. 2024-01-23 22:06:54 +00:00
ms5611_core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ms5611_i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ms5611_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ms5611.h iio: pressure: ms5611: Switch to fully devm_ managed registration. 2022-12-28 17:19:45 +00:00
ms5637.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
rohm-bm1390.c iio: pressure: rohm-bm1390: Remove redundant if statement 2024-10-10 19:06:19 +01:00
sdp500.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
st_pressure_buffer.c iio:st-sensors: Remove duplicate MODULE_* 2022-02-18 11:36:54 +00:00
st_pressure_core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
st_pressure_i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
st_pressure_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
st_pressure.h iio: pressure: st_pressure: Add support for LPS22DF 2022-09-21 18:42:53 +01:00
t5403.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
zpa2326_i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
zpa2326_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
zpa2326.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
zpa2326.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00