]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/mtty: Use mdev_get_type_group_id()
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 6 Apr 2021 19:40:35 +0000 (16:40 -0300)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 7 Apr 2021 21:39:19 +0000 (15:39 -0600)
commite8bd4c8f77adc9ebf7f38538202059edcf6129e6
tree49aade9927c8068f58fae10b0b41f7af14c095da
parent993ffa4861fe3e1203bcce32f4cd399b9db37c6d
vfio/mtty: Use mdev_get_type_group_id()

The type_group_id directly gives the single or dual port index, no
need for string searching.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Message-Id: <12-v2-d36939638fc6+d54-vfio2_jgg@nvidia.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
samples/vfio-mdev/mtty.c