+52
−72
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Modify code to use is_visible to determine if an attribute should be created
or not, then use devm_hwmon_device_register_with_groups to create the hwmon
device and all attributes in one operation.
Signed-off-by:
Guenter Roeck <linux@roeck-us.net>