desc = path;
- if (dev &&
- (sd_device_get_property_value(dev, "ID_MODEL_FROM_DATABASE", &model) >= 0 ||
- sd_device_get_property_value(dev, "ID_MODEL", &model) >= 0)) {
+ if (dev && device_get_model_string(dev, &model) >= 0) {
desc = model;
/* Try to concatenate the device model string with a label, if there is one */