tests: modetest: Accept connector names in addition to connector IDs
authorThierry Reding <treding@nvidia.com>
Fri, 23 Jan 2015 16:08:21 +0000 (17:08 +0100)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sat, 15 Aug 2015 00:06:57 +0000 (03:06 +0300)
commitf05a74fb9cb07a02c9bade65d66ba6949a2567a2
tree37199a283cc03cc4cd71c1981f3e66904b19ee9f
parentf045da45fee94a7179cced09a20b691c5167cef4
tests: modetest: Accept connector names in addition to connector IDs

Allow connector names to be used in the specification of the -s option.
This requires storing the string passed on the command-line so that it
can later be resolved to a connector ID (after the DRM device has been
opened).

Connector names are constructed from the connector type name and
connector type ID using the same format as used internally in the
Linux kernel.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
tests/modetest/modetest.c