]> git.baikalelectronics.ru Git - kernel.git/commit
drm/connector: Give connector sysfs devices there own device_type
authorHans de Goede <hdegoede@redhat.com>
Tue, 17 Aug 2021 21:51:54 +0000 (23:51 +0200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 20 Aug 2021 10:35:59 +0000 (12:35 +0200)
commited93c7a3159911d7c3aefa23131a03809b43b647
tree616ade37e28ed694b604e7f49f5713170ef11ad5
parent6937745846a45b8b77db74c1b98e929a8e2e68a7
drm/connector: Give connector sysfs devices there own device_type

Give connector sysfs devices there own device_type, this allows us to
check if a device passed to functions dealing with generic devices is
a drm_connector or not.

A check like this is necessary in the drm_connector_acpi_bus_match()
function added in the next patch in this series.

Tested-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://lore.kernel.org/r/20210817215201.795062-2-hdegoede@redhat.com
drivers/gpu/drm/drm_sysfs.c