[PATCH] tests: modetest: Accept connector names in addition to connector IDs
Thierry Reding
treding at nvidia.com
Tue Jul 21 02:05:59 PDT 2015
On Mon, Jul 20, 2015 at 07:56:20PM +0300, Laurent Pinchart wrote:
> From: Thierry Reding <treding at nvidia.com>
>
> 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 at nvidia.com>
> Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> ---
> tests/modetest/modetest.c | 94 +++++++++++++++++++++++++++++++++++++++++------
> 1 file changed, 82 insertions(+), 12 deletions(-)
>
> I've carried this patch in my tree for too long and I'm now tired of rebasing
> it. It's thus time to get it in mainline.
>
> Compared to the original version developed by Thierry, I've
>
> - rebased the patch on top of latest master
> - dropped dependencies on other WIP patches in Thierry's tree
> - fixed printf alignment
> - used asprintf to simplify name string allocation
> - constructed the connector name using the same format as the Linux kernel
Heh, I started to get all these patches into shape last week, and this
will probably give me more rebase headaches. But I guess that's what I
deserve for letting things slide...
Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150721/74f7b18f/attachment.sig>
More information about the dri-devel
mailing list