linux-stable/drivers/media/i2c
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
..
adv748x media: adv748x-csi2: Use the subdev active state 2024-06-19 19:43:04 +03:00
ccs move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
cx25840 media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
et8ek8 media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
s5c73m3 media: i2c: s5c73m3: Move clk_prepare to its own function 2024-08-31 09:40:43 +02:00
ad5820.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
adp1653.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
adv7170.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
adv7175.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
adv7180.c media: adv7180: Also check for "adi,force-bt656-4" 2024-11-08 13:38:10 +01:00
adv7183_regs.h
adv7183.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
adv7343_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_30.RULE (part 2) 2022-06-10 14:51:35 +02:00
adv7343.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
adv7393_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_30.RULE (part 2) 2022-06-10 14:51:35 +02:00
adv7393.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
adv7511-v4l2.c media: i2c: adv7511-v4l2: export InfoFrames to debugfs 2024-10-12 10:44:05 +02:00
adv7604.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
adv7842.c media: replace obsolete hans.verkuil@cisco.com alias 2024-11-08 13:38:09 +01:00
ak881x.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
ak7375.c media: i2c: ak7375: Add support for ak7345 2023-12-13 13:21:19 +01:00
alvium-csi2.c media: i2c: Drop HAS_EVENTS and event handlers 2024-11-07 09:05:57 +01:00
alvium-csi2.h media: i2c: alvium: rename acquisition frame rate enable reg 2024-06-15 11:16:39 +02:00
aptina-pll.c media: i2c: aptina-pll: Remove a useless include 2022-11-25 08:35:48 +00:00
aptina-pll.h
ar0521.c media: ar0521: don't overflow when checking PLL values 2024-10-18 10:43:03 +02:00
bt819.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
bt856.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
bt866.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
ccs-pll.c media: ccs-pll: Initialise best_div to avoid a compiler warning 2023-08-10 07:58:33 +02:00
ccs-pll.h media: ccs-pll: Switch from standard integer types to kernel ones 2021-01-12 17:55:28 +01:00
cs53l32a.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
cs3308.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
cs5345.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
ds90ub913.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ds90ub953.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ds90ub960.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
dw9714.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
dw9719.c media: i2c: Add driver for DW9719 VCM 2023-08-10 07:58:41 +02:00
dw9768.c media: i2c: dw9768: Use runtime PM autosuspend 2024-11-07 09:05:59 +01:00
dw9807-vcm.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
gc05a2.c media: i2c: Drop HAS_EVENTS and event handlers 2024-11-07 09:05:57 +01:00
gc08a3.c media: i2c: Drop HAS_EVENTS and event handlers 2024-11-07 09:05:57 +01:00
gc0308.c media: i2c: Drop HAS_EVENTS and event handlers 2024-11-07 09:05:57 +01:00
gc2145.c media: i2c: gc2145: introduce enable/disable_streams ops 2024-11-07 09:05:58 +01:00
hi556.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
hi846.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
hi847.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
imx208.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
imx214.c media: imx214: Fix the error handling in imx214_probe() 2024-04-29 12:06:33 +01:00
imx219.c media: i2c: Drop HAS_EVENTS and event handlers 2024-11-07 09:05:57 +01:00
imx258.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
imx274.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
imx283.c media: i2c: Drop HAS_EVENTS and event handlers 2024-11-07 09:05:57 +01:00
imx290.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
imx296.c media: v4l2-subdev: Rename .init_cfg() operation to .init_state() 2023-12-04 10:37:47 +01:00
imx319.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
imx334.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
imx335.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
imx355.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
imx412.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
imx415.c media: i2c: imx415: Drop HAS_EVENTS flag 2024-11-07 09:05:57 +01:00
ir-kbd-i2c.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
isl7998x.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
Kconfig media: i2c: Kconfig: Fix missing firmware upload config select 2024-06-26 09:14:02 +03:00
ks0127.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
ks0127.h
lm3560.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
lm3646.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
m52790.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
Makefile media: i2c: Add GC05A2 image sensor driver 2024-06-24 16:47:34 +02:00
max2175.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
max2175.h
max9271.c media: i2c: max9271: Introduce wake_up() function 2021-06-17 11:30:21 +02:00
max9271.h media: i2c: max9271: Add header include guards to max9271.h 2024-04-29 09:17:52 +01:00
max9286.c media: max9286: Use frame interval from subdev state 2024-06-19 19:43:07 +03:00
max96714.c media: i2c: Drop HAS_EVENTS and event handlers 2024-11-07 09:05:57 +01:00
max96717.c media: i2c: Drop HAS_EVENTS and event handlers 2024-11-07 09:05:57 +01:00
ml86v7667.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
msp3400-driver.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
msp3400-driver.h media: msp3400: Use wait_event_freezable_timeout() in msp_sleep() 2024-02-16 11:46:31 +01:00
msp3400-kthreads.c media: msp3400: use semicolons rather than commas to separate statements 2020-11-16 10:31:07 +01:00
mt9m001.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
mt9m111.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
mt9m114.c media: i2c: mt9m114: use fsleep() in place of udelay() 2023-12-14 12:40:13 +01:00
mt9p031.c media: mt9p031: Refactor format handling for different sensor models 2024-11-07 09:05:58 +01:00
mt9t112.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
mt9v011.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
mt9v032.c media: i2c: replace of_graph_get_next_endpoint() 2024-02-23 14:33:32 +01:00
mt9v111.c media: i2c: mt9v111: Drop redundant comma 2024-08-31 09:40:44 +02:00
og01a1b.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
ov01a10.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
ov02a10.c media: v4l2-subdev: Rename .init_cfg() operation to .init_state() 2023-12-04 10:37:47 +01:00
ov08d10.c media: v4l: subdev: Switch to stream-aware state functions 2023-11-23 18:57:47 +01:00
ov08x40.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
ov13b10.c media: ov13b10: Enable runtime PM before registering async sub-device 2023-12-04 11:21:46 +01:00
ov64a40.c media: i2c: Drop HAS_EVENTS and event handlers 2024-11-07 09:05:57 +01:00
ov772x.c media: i2c: Fix typos in comments across various files 2024-10-16 09:32:36 +02:00
ov2640.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
ov2659.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
ov2680.c media: ov2680: Pass correct number of controls to v4l2_ctrl_handler_init() 2024-06-15 11:16:40 +02:00
ov2685.c media: v4l: subdev: Switch to stream-aware state functions 2023-11-23 18:57:47 +01:00
ov2740.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
ov4689.c media: i2c: ov4689: Set timing registers programmatically 2024-04-26 11:29:06 +01:00
ov5640.c media: i2c: Fix typos in comments across various files 2024-10-16 09:32:36 +02:00
ov5645.c media: i2c: ov5645: Switch to {enable,disable}_streams 2024-11-07 09:05:59 +01:00
ov5647.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
ov5648.c media: v4l2-subdev: Add which field to struct v4l2_subdev_frame_interval 2023-12-13 16:52:35 +01:00
ov5670.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
ov5675.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
ov5693.c media: ov5693: Drop privacy-LED GPIO control 2024-06-04 08:31:26 +02:00
ov5695.c media: v4l: subdev: Switch to stream-aware state functions 2023-11-23 18:57:47 +01:00
ov6650.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
ov7251.c media: v4l2-subdev: Add which field to struct v4l2_subdev_frame_interval 2023-12-13 16:52:35 +01:00
ov7640.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
ov7670.c media: v4l2-subdev: Add which field to struct v4l2_subdev_frame_interval 2023-12-13 16:52:35 +01:00
ov7740.c media: i2c: Fix typos in comments across various files 2024-10-16 09:32:36 +02:00
ov8856.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
ov8858.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
ov8865.c media: v4l2-subdev: Add which field to struct v4l2_subdev_frame_interval 2023-12-13 16:52:35 +01:00
ov9282.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
ov9640.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
ov9640.h media: ov9640: Use the generic clock framework 2021-02-06 09:38:05 +01:00
ov9650.c media: i2c: Fix typos in comments across various files 2024-10-16 09:32:36 +02:00
ov9734.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
ov13858.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
rdacm20.c media: i2c: rdacm20: Fix indentation in comment 2024-04-29 09:16:01 +01:00
rdacm21.c media: i2c: rdacm21: Remove an incorrect fwnode_handle_put() call 2023-09-14 23:31:55 +02:00
rj54n1cb0c.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
s5k5baf.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
s5k6a3.c media: v4l: subdev: Switch to stream-aware state functions 2023-11-23 18:57:47 +01:00
saa711x_regs.h
saa717x.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
saa6588.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
saa6752hs.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
saa7110.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
saa7115.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
saa7127.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
saa7185.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
sony-btf-mpx.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
st-mipid02.c media: i2c: st-mipid02: remove parallel mbus format on sink pad 2024-11-07 09:05:58 +01:00
tc358743_regs.h
tc358743.c media: i2c: tc358743: Fix crash in the probe error path when using polling 2024-10-12 16:28:26 +02:00
tc358746.c media: tc358746: Move clk_prepare to its own function 2024-08-31 09:40:43 +02:00
tda1997x_regs.h media: TDA1997x: replace video detection routine 2021-10-19 08:08:38 +01:00
tda1997x.c media: i2c: tda1997x: constify snd_soc_component_driver struct 2024-08-09 07:56:38 +02:00
tda7432.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
tda9840.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
tea6415c.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
tea6415c.h
tea6420.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
tea6420.h
thp7312.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
ths7303.c media: replace obsolete hans.verkuil@cisco.com alias 2024-11-08 13:38:09 +01:00
ths8200_regs.h
ths8200.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
tlv320aic23b.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
tvaudio.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
tvp514x_regs.h media: media/i2c: fix kerneldoc issues for media i2c headers 2021-03-22 10:23:43 +01:00
tvp514x.c media: i2c: replace of_graph_get_next_endpoint() 2024-02-23 14:33:32 +01:00
tvp5150_reg.h
tvp5150.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
tvp7002_reg.h
tvp7002.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
tw2804.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
tw9900.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
tw9903.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
tw9906.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
tw9910.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
uda1342.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
upd64031a.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
upd64083.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
vgxy61.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
video-i2c.c media: video-i2c: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:56 +01:00
vp27smpx.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
vpx3220.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
wm8739.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00
wm8775.c media: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-09 07:56:37 +02:00