diff options
Diffstat (limited to 'hwmon.hpp')
| -rw-r--r-- | hwmon.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -33,6 +33,7 @@ static constexpr auto ccurr = "curr"; static constexpr auto cenergy = "energy"; static constexpr auto cpower = "power"; static constexpr auto cpwm = "pwm"; +static constexpr auto cfreq = "freq"; static const std::string fan = cfan; @@ -42,6 +43,7 @@ static const std::string curr = ccurr; static const std::string energy = cenergy; static const std::string power = cpower; static const std::string pwm = cpwm; +static const std::string freq = cfreq; } static constexpr auto typeAttrMap = @@ -80,6 +82,11 @@ static constexpr auto typeAttrMap = ValueInterface::Unit::Watts, -6, "power"), + std::make_tuple( + hwmon::type::cfreq, + ValueInterface::Unit::MHz, + 0, + "frequency"), }; inline auto getHwmonType(decltype(typeAttrMap)::const_reference attrs) |

