tdehw: make rtc devices appear as Timekeeping rather than Mainboard devices

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
pull/155/head
Alexander Golubev 3 years ago committed by Michele Calgaro
parent 2023cc330a
commit 0631f76fb7
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -2151,7 +2151,8 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD
if (devicesubsystem == "nd") {
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::RAM);
}
if (devicesubsystem == "ptp") {
if (devicesubsystem == "ptp"
|| (devicesubsystem == "rtc")) {
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Timekeeping);
}
if (devicesubsystem == "leds") {
@ -2185,8 +2186,7 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD
if (devicesubsystem == "mmc") {
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Platform);
}
if ((devicesubsystem == "event_source")
|| (devicesubsystem == "rtc")) {
if (devicesubsystem == "event_source") {
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Mainboard);
}
if (devicesubsystem == "bsg") {

Loading…
Cancel
Save