diff options
author | Alexander Golubev <[email protected]> | 2022-02-14 10:01:35 +0300 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2022-02-15 10:16:29 +0900 |
commit | 0631f76fb7238b2e0da61beb0b6422ac3d6fa0aa (patch) | |
tree | cad8c68a2b38cf570cc29b82383068acbb9cf99b /tdecore | |
parent | 2023cc330ab809fb72b8f063a66ba7feb12e4c9e (diff) | |
download | tdelibs-0631f76fb7238b2e0da61beb0b6422ac3d6fa0aa.tar.gz tdelibs-0631f76fb7238b2e0da61beb0b6422ac3d6fa0aa.zip |
tdehw: make rtc devices appear as Timekeeping rather than Mainboard devices
Signed-off-by: Alexander Golubev <[email protected]>
Diffstat (limited to 'tdecore')
-rw-r--r-- | tdecore/tdehw/tdehardwaredevices.cpp | 6 |
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") { |