media: v4l2-ctrls: v4l2_ctrl_add_handler: add from_other_dev
Add a 'bool from_other_dev' argument: set to true if the two handlers refer to different devices (e.g. it is true when inheriting controls from a subdev into a main v4l2 bridge driver). This will be used later when implementing support for the request API since we need to skip such controls. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Alexandre Courbot <acourbot@chromium.org> Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
f23317adf6
commit
da1b1aeac1
@@ -1394,7 +1394,8 @@ static int rtl2832_sdr_probe(struct platform_device *pdev)
|
||||
case RTL2832_SDR_TUNER_E4000:
|
||||
v4l2_ctrl_handler_init(&dev->hdl, 9);
|
||||
if (subdev)
|
||||
v4l2_ctrl_add_handler(&dev->hdl, subdev->ctrl_handler, NULL);
|
||||
v4l2_ctrl_add_handler(&dev->hdl, subdev->ctrl_handler,
|
||||
NULL, true);
|
||||
break;
|
||||
case RTL2832_SDR_TUNER_R820T:
|
||||
case RTL2832_SDR_TUNER_R828D:
|
||||
@@ -1423,7 +1424,7 @@ static int rtl2832_sdr_probe(struct platform_device *pdev)
|
||||
v4l2_ctrl_handler_init(&dev->hdl, 2);
|
||||
if (subdev)
|
||||
v4l2_ctrl_add_handler(&dev->hdl, subdev->ctrl_handler,
|
||||
NULL);
|
||||
NULL, true);
|
||||
break;
|
||||
default:
|
||||
v4l2_ctrl_handler_init(&dev->hdl, 0);
|
||||
|
Reference in New Issue
Block a user