summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw/tdehardwaredevices.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-09-23 12:00:16 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-09-23 12:00:16 -0500
commit8c0d2c291904c9c147f3d0f47ac4934de6c7ac4c (patch)
treed73a20ce7015eda3c3f20c16df853928d6c61bb1 /tdecore/tdehw/tdehardwaredevices.cpp
parentd2be9f66f9f0767685a6999c4a8f91fd27ce0611 (diff)
downloadtdelibs-8c0d2c291904c9c147f3d0f47ac4934de6c7ac4c.tar.gz
tdelibs-8c0d2c291904c9c147f3d0f47ac4934de6c7ac4c.zip
Classify regulator devices
Diffstat (limited to 'tdecore/tdehw/tdehardwaredevices.cpp')
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp
index a2934df02..194bf6c7e 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -1977,6 +1977,9 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD
else if (devicesubsystem == "node") {
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Platform);
}
+ else if (devicesubsystem == "regulator") {
+ if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Platform);
+ }
else if (devicesubsystem == "memory") {
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Platform);
}