linux/drivers/iio/light
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
..
acpi-als.c iio: Rename iio_trigger_poll_chained and add kernel-doc 2023-03-11 12:18:29 +00:00
adjd_s311.c iio: light: adjd_s311: make use of iio_for_each_active_channel() 2024-08-03 10:13:40 +01:00
adux1020.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
al3010.c iio: light: al3010: Fix an error handling path in al3010_probe() 2024-09-30 09:21:03 +01:00
al3320a.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
apds9300.c iio: light: apds9300: use bool for event state 2024-11-03 20:33:44 +00:00
apds9306.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
apds9960.c iio: light: apds9960: remove useless return 2024-11-03 20:33:44 +00:00
as73211.c iio: light: as73211: add support for as7331 2024-01-22 18:58:44 +00:00
bh1745.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
bh1750.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
bh1780.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
cm3232.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
cm3323.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
cm3605.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
cm32181.c iio: light: cm32181: Remove duplicate ACPI handle check 2024-09-30 09:21:02 +01:00
cm36651.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
cros_ec_light_prox.c iio: cros: Register FIFO callback after sensor is registered 2022-07-18 18:29:13 +01:00
gp2ap002.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
gp2ap020a00f.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
hid-sensor-als.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hid-sensor-prox.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
iqs621-als.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
isl29018.c iio: light: isl29018: drop ACPI_PTR() and CONFIG_ACPI guards 2024-11-01 14:54:44 +00:00
isl29028.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
isl29125.c iio: light: isl29125: make use of iio_for_each_active_channel() 2024-08-03 10:13:40 +01:00
isl76682.c iio: light: isl76682: remove unreachable code 2023-12-11 19:16:35 +00:00
jsa1212.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
Kconfig iio: light: add support for veml3235 2024-11-01 14:54:46 +00:00
lm3533-als.c iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
ltr390.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
ltr501.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
ltrf216a.c Linux 6.12-rc2 2024-10-12 11:43:29 +01:00
lv0104cs.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
Makefile iio: light: add support for veml3235 2024-11-01 14:54:46 +00:00
max44000.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
max44009.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
noa1305.c iio: light: noa1305: Fix up integration time look up 2024-08-17 15:37:37 +01:00
opt3001.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
opt4001.c iio: light: opt4001: Use i2c_get_match_data() 2023-09-12 10:42:03 +01:00
pa12203001.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
rohm-bu27008.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
rohm-bu27034.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
rpr0521.c iio: light: rpr0521: Use generic iio_pollfunc_store_time() 2024-10-15 18:59:51 +01:00
si1133.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
si1145.c iio: light: si1145: use new '.masklength' accessors 2024-08-03 10:13:40 +01:00
st_uvis25_core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
st_uvis25_i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
st_uvis25_spi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
st_uvis25.h iio:light:st_uvis25: Fix timestamp alignment and prevent data leak. 2020-12-03 19:40:27 +00:00
stk3310.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
tcs3414.c iio: light: tcs3414: make use of iio_for_each_active_channel() 2024-08-03 10:13:40 +01:00
tcs3472.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
tsl2563.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
tsl2583.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
tsl2591.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
tsl2772.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
tsl4531.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
us5182d.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
vcnl4000.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
vcnl4035.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
veml3235.c iio: light: add support for veml3235 2024-11-01 14:54:46 +00:00
veml6030.c Merge commit '9365f0de4303f82ed4c2db1c39d3de824b249d80' into HEAD 2024-11-09 10:39:52 +00:00
veml6040.c iio: light: driver for Vishay VEML6040 2024-06-13 19:19:25 +01:00
veml6070.c iio: light: veml6070: add support for integration time 2024-11-03 20:33:42 +00:00
veml6075.c iio: light: add VEML6075 UVA and UVB light sensor driver 2023-12-04 13:57:25 +00:00
vl6180.c iio: light: vl6180: Add support for Continuous Mode 2024-10-15 18:59:51 +01:00
zopt2201.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00