summaryrefslogtreecommitdiffstats
path: root/tdecore
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2022-02-14 10:01:35 +0300
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-02-15 10:16:29 +0900
commit0631f76fb7238b2e0da61beb0b6422ac3d6fa0aa (patch)
treecad8c68a2b38cf570cc29b82383068acbb9cf99b /tdecore
parent2023cc330ab809fb72b8f063a66ba7feb12e4c9e (diff)
downloadtdelibs-0631f76fb7238b2e0da61beb0b6422ac3d6fa0aa.tar.gz
tdelibs-0631f76fb7238b2e0da61beb0b6422ac3d6fa0aa.zip
tdehw: make rtc devices appear as Timekeeping rather than Mainboard devices
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'tdecore')
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp
index dbeffad6c..7ac5622ba 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -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") {