commit | 8fe784b9abb296124d0182eac35b96dbc29d049a | [log] [tgz] |
---|---|---|
author | Steve Longerbeam <slongerbeam@gmail.com> | Fri May 01 19:15:36 2020 +0200 |
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | Mon May 18 11:12:52 2020 +0200 |
tree | edfe3e69454373d9a5c021108f4e73630acc04e8 | |
parent | 70d4a9efee9cdd580207473379e3ee64b331ae75 [diff] |
media: v4l2-subdev: add v4l2_subdev_get_fwnode_pad_1_to_1 Add a convenience function that can be used as the .get_fwnode_pad operation for subdevices that map port numbers and pad indexes 1:1. The function verifies the endpoint is owned by the subdevice, and if so returns the endpoint port number. 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+huawei@kernel.org>