SY24655: Support for current and voltage detection as well as
power calculation.
Signed-off-by: wenliang <wenliang202407@xxxxxxx>
---
@@ -668,6 +731,11 @@ static umode_t ina2xx_is_visible(const void *_data, enum hwmon_sensor_types type
if (has_alerts)
return 0444;
break;
+ case hwmon_power_average:
+ if (has_power_average)
+ return 0444;
+ break;
+ return 0444;