}
static bool
-verify_drm_device (struct udev_device *device)
+syspath_is_simpledrm (const char *syspath)
{
- const char *id_path;
+ return ply_string_has_suffix (syspath, "simple-framebuffer.0/drm/card0");
+}
+static bool
+verify_drm_device (struct udev_device *device)
+{
/*
* Simple-framebuffer devices driven by simpledrm lack information
* like panel-rotation info and physical size, causing the splash
* To avoid this treat simpledrm devices as fbdev devices and only
* use them after the timeout.
*/
- id_path = udev_device_get_property_value (device, "ID_PATH");
- if (!ply_string_has_prefix (id_path, "platform-simple-framebuffer"))
+ if (!syspath_is_simpledrm (udev_device_get_syspath (device)))
return true; /* Not a SimpleDRM device */
/*