|
|
@ -1971,6 +1971,18 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD
|
|
|
|
else if (devicesubsystem == "spi") {
|
|
|
|
else if (devicesubsystem == "spi") {
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Platform);
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Platform);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (devicesubsystem == "watchdog") {
|
|
|
|
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Platform);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (devicesubsystem == "node") {
|
|
|
|
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Platform);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (devicesubsystem == "memory") {
|
|
|
|
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Platform);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (devicesubsystem == "clockevents") {
|
|
|
|
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Platform);
|
|
|
|
|
|
|
|
}
|
|
|
|
else if (devicesubsystem == "thermal") {
|
|
|
|
else if (devicesubsystem == "thermal") {
|
|
|
|
// FIXME
|
|
|
|
// FIXME
|
|
|
|
// Figure out a way to differentiate between ThermalControl (fans and coolers) and ThermalSensor types
|
|
|
|
// Figure out a way to differentiate between ThermalControl (fans and coolers) and ThermalSensor types
|
|
|
@ -2062,6 +2074,9 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD
|
|
|
|
if (devicedriver.startsWith("tpm_")) {
|
|
|
|
if (devicedriver.startsWith("tpm_")) {
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Cryptography);
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Cryptography);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Platform);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (devicesubsystem == "leds") {
|
|
|
|
if (devicesubsystem == "leds") {
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::OtherACPI);
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::OtherACPI);
|
|
|
|