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)
commit331de7db3012b8e8e8d77beebc8f743e288d4c42
tree616ade37e28ed694b604e7f49f5713170ef11ad5
parentc7782443a88926a4f938f0193041616328cf2db2
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