linux/drivers/media/pci
Steve Longerbeam eae2aed1ea media: v4l2-fwnode: Switch to v4l2_async_notifier_add_subdev
The fwnode endpoint and reference parsing functions in v4l2-fwnode.c
are modified to make use of v4l2_async_notifier_add_subdev().
As a result the notifier->subdevs array is no longer allocated or
re-allocated, and by extension the max_subdevs value is also no
longer needed.

Callers of the fwnode endpoint and reference parsing functions must now
first initialize the notifier with a call to v4l2_async_notifier_init().
This includes the function v4l2_async_register_subdev_sensor_common(),
and the intel-ipu3, omap3isp, and rcar-vin drivers.

Since the notifier->subdevs array is no longer allocated in the
fwnode endpoint and reference parsing functions, the callers of
those functions must never reference that array, since it is now
NULL. Of the drivers that make use of the fwnode/ref parsing,
only the intel-ipu3 driver references the ->subdevs[] array,
(in the notifier completion callback), so that driver has been
modified to iterate through the notifier->asd_list instead.

Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-10-04 15:33:09 -04:00
..
b2c2 media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
bt8xx media: bt8xx: Remove unnecessary self-assignment 2018-09-24 09:41:47 -04:00
cobalt media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
cx18 media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
cx88 media: rc: Remove init_ir_raw_event and DEFINE_IR_RAW_EVENT macros 2018-10-04 14:22:27 -04:00
cx23885 media: rc: Remove init_ir_raw_event and DEFINE_IR_RAW_EVENT macros 2018-10-04 14:22:27 -04:00
cx25821 media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
ddbridge media: ddbridge/sx8: remove redundant check of iq_mode == 2 2018-09-12 09:14:05 -04:00
dm1105 media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
dt3155 media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
intel media: v4l2-fwnode: Switch to v4l2_async_notifier_add_subdev 2018-10-04 15:33:09 -04:00
ivtv media: pci: ivtv: Fix a sleep-in-atomic-context bug in ivtv_yuv_init() 2018-09-24 09:09:07 -04:00
mantis media: dvb: represent min/max/step/tolerance freqs in Hz 2018-08-02 18:10:48 -04:00
meye media: fix: media: pci: meye: validate offset to avoid arbitrary access 2018-09-12 10:47:50 -04:00
netup_unidvb media: netup_unidvb: don't check number of messages in the driver 2018-07-27 06:39:57 -04:00
ngene media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
pluto2 media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
pt1 media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
pt3 media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
saa7134 media: saa7134: add P7131_4871 analog inputs 2018-09-24 09:09:07 -04:00
saa7146 media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
saa7164 media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
smipcie media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
solo6x10 media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
sta2x11 media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
ttpci media: dvb: move compat handlers into drivers 2018-09-12 11:00:51 -04:00
tw68 media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
tw686x media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
tw5864 media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
Kconfig media: zoran: move to staging in preparation for removal 2018-05-25 15:21:36 -04:00
Makefile media: zoran: move to staging in preparation for removal 2018-05-25 15:21:36 -04:00