linux/drivers/media/i2c
Laurent Pinchart b01edcbd40 media: v4l2-async: Improve v4l2_async_notifier_add_*_subdev() API
The functions that add an async subdev to an async subdev notifier take
as an argument the size of the container structure they need to
allocate. This is error prone, as passing an invalid size will not be
caught by the compiler. Wrap those functions in macros that take a
container type instead of a size, and cast the returned pointer to the
desired type. The compiler will catch mistakes if the incorrect type is
passed to the macro, as the assignment types won't match.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Helen Koike <helen.koike@collabora.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> (core+ti-cal)
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-02-06 09:18:53 +01:00
..
adv748x media: adv748x: Configure device when resuming from sleep 2020-12-03 07:48:14 +01:00
ccs Linux 5.11-rc6 2021-02-01 10:03:45 +01:00
cx25840 media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
et8ek8 media: i2c: et8ek8: simplify getting state container 2020-11-16 10:31:11 +01:00
m5mols media: m5mols: Check function pointer in m5mols_sensor_power 2020-09-01 14:13:27 +02:00
s5c73m3 media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
ad5820.c media: i2c: ad5820: simplify getting state container 2020-11-16 10:31:11 +01:00
ad9389b.c media: i2c: ad9389b: convert to i2c_new_dummy_device 2019-08-13 11:45:04 -03:00
adp1653.c media: i2c: adp1653: simplify getting state container 2020-11-16 10:31:11 +01:00
adv7170.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
adv7175.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
adv7180.c media: i2c: adv7180: simplify getting state container 2020-11-16 10:31:11 +01:00
adv7183_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
adv7183.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
adv7343_regs.h
adv7343.c media: i2c: Convert to new i2c device probe() 2019-08-13 11:54:04 -03:00
adv7393_regs.h
adv7393.c media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
adv7511-v4l2.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
adv7604.c media: adv7604: extend deep color mode to ADV7611 2019-12-16 10:23:58 +01:00
adv7842.c media: i2c: adv7842: make array cri static and const, makes object smaller 2019-10-24 18:33:18 -03:00
ak881x.c media updates for v5.3-rc1 2019-07-09 09:47:22 -07:00
ak7375.c media: i2c: ak7375: simplify getting state container 2020-11-16 10:31:11 +01:00
aptina-pll.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
aptina-pll.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
bt819.c media: bt819: Reduce amount of F* words in the world 2019-11-05 09:01:17 -03:00
bt856.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
bt866.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61 2019-05-24 17:36:45 +02:00
ccs-pll.c Linux 5.11-rc6 2021-02-01 10:03:45 +01: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 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
cs3308.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
cs5345.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
dw9714.c media: ipu3-cio2, dw9714: Remove Jian Xu's e-mail 2019-01-16 13:34:01 -05:00
dw9768.c media: i2c: dw9768: simplify getting state container 2020-11-16 10:31:11 +01:00
dw9807-vcm.c media: i2c: Remove Alan Chiang's e-mail address 2020-09-10 14:20:39 +02:00
hi556.c media: i2c: hi556: simplify getting state container 2020-11-16 10:31:11 +01:00
imx214.c media: imx214: Fix stop streaming 2020-11-27 10:16:27 +01:00
imx219.c media: i2c: imx219: take lock in imx219_enum_mbus_code/frame_size 2021-01-12 15:57:31 +01:00
imx258.c media: imx258: Remove Jason Chen's e-mail 2020-11-16 10:31:15 +01:00
imx274.c media: imx274: add support for sensor mode6, 1280x540 2020-11-16 10:31:12 +01:00
imx290.c media: i2c: imx290: simplify getting state container 2020-11-16 10:31:11 +01:00
imx319.c media: i2c: imx319: silence unused acpi_device_id warning 2020-11-16 10:31:11 +01:00
imx355.c media: i2c: imx355: silence unused acpi_device_id warning 2020-11-16 10:31:11 +01:00
ir-kbd-i2c.c media: ir-kbd-i2c: convert to i2c_new_dummy_device() 2019-08-14 05:05:10 -03:00
Kconfig media: i2c/Kconfig: Select FWNODE for OV772x sensor 2021-01-27 15:49:04 +01:00
ks0127.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
ks0127.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
lm3560.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
lm3646.c media: lm3646: remove redundant assignment to variable rval 2019-10-24 18:41:31 -03:00
m52790.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
Makefile media: i2c: Add support for the OV8865 image sensor 2021-01-12 17:13:39 +01:00
max2175.c media: max2175: fix max2175_set_csm_mode() error code 2020-11-27 10:58:30 +01:00
max2175.h media: i2c: Use the correct style for SPDX License Identifier 2019-11-10 17:47:14 +01:00
max9271.c media: max9271: Fix GPIO enable/disable 2020-12-02 16:14:27 +01:00
max9271.h media: i2c: Add RDACM20 driver 2020-07-19 14:15:42 +02:00
max9286.c media: v4l2-async: Improve v4l2_async_notifier_add_*_subdev() API 2021-02-06 09:18:53 +01:00
ml86v7667.c media: i2c: Use the new get_mbus_config pad op 2020-08-18 15:35:54 +02:00
msp3400-driver.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
msp3400-driver.h media: msp3400: declare its own pads 2018-09-17 13:16:19 -04: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: i2c: Use the new get_mbus_config pad op 2020-08-18 15:35:54 +02:00
mt9m032.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
mt9m111.c media: i2c: Use the new get_mbus_config pad op 2020-08-18 15:35:54 +02:00
mt9p031.c media: i2c: mt9p031: Remove redundant null check before clk_disable_unprepare 2020-11-25 14:41:40 +01:00
mt9t001.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
mt9t112.c media: i2c: fix several typos 2019-03-01 09:29:58 -05:00
mt9v011.c media: convert g/s_parm to g/s_frame_interval in subdevs 2018-02-22 12:27:35 -05:00
mt9v032.c media: i2c: mt9v032: fix enum mbus codes and frame sizes 2020-01-04 08:09:59 +01:00
mt9v111.c media: mt9v111: Remove unneeded device-managed puts 2021-01-12 17:14:02 +01:00
noon010pc30.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
ov02a10.c media: i2c/ov02a10.c: add cast to fix type mismatch 2021-01-27 08:39:30 +01:00
ov772x.c media: i2c: ov772x: Add test pattern control 2020-11-16 10:31:14 +01:00
ov2640.c media: i2c: Convert to new i2c device probe() 2019-08-13 11:54:04 -03:00
ov2659.c media: i2c: ov2659: Switch to SPDX Licensing 2019-10-01 17:39:16 -03:00
ov2680.c media: i2c: ov2680: simplify getting state container 2020-11-16 10:31:11 +01:00
ov2685.c media: i2c: ov2685: simplify getting state container 2020-11-16 10:31:11 +01:00
ov2740.c media: ov2740: fix dereference before null check on pointer nvm 2020-12-02 16:08:58 +01:00
ov5640.c media: ov5640: fix support of BT656 bus mode 2020-11-16 10:31:15 +01:00
ov5645.c media: i2c: ov5645: Fix power sequence 2019-08-15 08:08:07 -03:00
ov5647.c media: ov5647: Remove 640x480 SBGGR8 mode 2021-01-12 17:03:34 +01:00
ov5648.c media: i2c: ov5648: remove unnecessary NULL check 2021-02-06 08:38:29 +01:00
ov5670.c media: i2c: ov5670: Fix PIXEL_RATE minimum value 2021-01-12 17:09:37 +01:00
ov5675.c media: i2c: ov5675: simplify getting state container 2020-11-16 10:31:12 +01:00
ov5695.c media: i2c: ov5695: simplify getting state container 2020-11-16 10:31:12 +01:00
ov6650.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
ov7251.c media: v4l: mediabus: Recognise CSI-2 D-PHY and C-PHY 2018-10-04 16:06:15 -04:00
ov7640.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
ov7670.c media: ov7670: do not aggregate returns 2020-11-16 10:31:15 +01:00
ov7740.c media: i2c: ov7740: simplify getting state container 2020-11-16 10:31:12 +01:00
ov8856.c media: i2c: ov8856: simplify getting state container 2020-11-16 10:31:12 +01:00
ov8865.c media: i2c: fix spelling mistakes: "enpoint" -> "endpoint" 2021-02-06 08:36:42 +01:00
ov9640.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
ov9640.h media: i2c: ov9640: add missing SPDX identifiers 2019-01-16 13:30:44 -05:00
ov9650.c media: ov9650: add a sanity check 2019-08-26 14:05:09 -03:00
ov9734.c media: ov9734: hold lock to check streaming state 2020-12-02 15:56:10 +01:00
ov13858.c media: i2c: ov13858: simplify getting state container 2020-11-16 10:31:11 +01:00
rdacm20.c media: rdacm20: Enable GPIO1 explicitly 2020-12-02 16:15:17 +01:00
rj54n1cb0c.c media: v4l: Remove support for crop default target in subdev drivers 2018-10-03 11:58:24 -04:00
s5k4ecgx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
s5k5baf.c media: s5k5baf: drop 'data' field in struct s5k5baf_fw 2020-10-08 14:13:28 +02:00
s5k6a3.c media: s5k6a3: Fix runtime PM imbalance on error 2020-06-23 13:18:25 +02:00
s5k6aa.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
saa711x_regs.h media: i2c: Use the correct style for SPDX License Identifier 2019-11-10 17:47:14 +01:00
saa717x.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
saa6588.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61 2019-05-24 17:36:45 +02:00
saa6752hs.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 68 2019-05-24 17:36:46 +02:00
saa7110.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
saa7115.c media: i2c: fix several typos 2019-03-01 09:29:58 -05:00
saa7127.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
saa7185.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
sony-btf-mpx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
sr030pc30.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
st-mipid02.c media: v4l2-async: Improve v4l2_async_notifier_add_*_subdev() API 2021-02-06 09:18:53 +01:00
tc358743_regs.h media: i2c: add SPDX license info 2018-02-14 13:16:31 -05:00
tc358743.c media: tc358743: cleanup tc358743_cec_isr 2020-09-26 10:25:51 +02:00
tda1997x_regs.h media: i2c: Use the correct style for SPDX License Identifier 2019-11-10 17:47:14 +01:00
tda1997x.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
tda7432.c media: add SPDX headers to some files 2019-06-12 11:42:27 -04:00
tda9840.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61 2019-05-24 17:36:45 +02:00
tea6415c.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 68 2019-05-24 17:36:46 +02:00
tea6415c.h
tea6420.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61 2019-05-24 17:36:45 +02:00
tea6420.h
ths7303.c media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
ths8200_regs.h
ths8200.c media: i2c: Convert to new i2c device probe() 2019-08-13 11:54:04 -03:00
tlv320aic23b.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
tvaudio.c media: i2c: fix several typos 2019-03-01 09:29:58 -05:00
tvp514x_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 486 2019-06-19 17:09:52 +02:00
tvp514x.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 486 2019-06-19 17:09:52 +02:00
tvp5150_reg.h media: i2c: Use the correct style for SPDX License Identifier 2019-11-10 17:47:14 +01:00
tvp5150.c media: tvp5150: Fix wrong return value of tvp5150_parse_dt() 2020-12-03 07:37:33 +01:00
tvp7002_reg.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
tvp7002.c media: tvp7002: fix uninitialized variable warning 2020-10-08 14:13:59 +02:00
tw2804.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
tw9903.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
tw9906.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
tw9910.c media: i2c: tw9910: simplify getting the adapter of a client 2019-06-24 11:17:03 -04:00
uda1342.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
upd64031a.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
upd64083.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
video-i2c.c media: i2c: video-i2c: fix build errors due to 'imply hwmon' 2020-03-24 17:11:27 +01:00
vp27smpx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
vpx3220.c media: vpx3220: make array input_vals static, makes object smaller 2019-11-05 08:48:55 -03:00
vs6624_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
vs6624.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
wm8739.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
wm8775.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00