Skip to content
Commit b2e5411e authored by Pawel Moll's avatar Pawel Moll Committed by Guenter Roeck
Browse files

hwmon: (vexpress) Avoid creating non-existing attributes



The 'label' attribute was always created but returned -ENOENT
if there is no label and such behaviour is undefined from
libsensors' point of view.

Fixed by providing is_visible method in the attributes group,
so the attribute is not created at all when unnecessary.

Reported-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarPawel Moll <pawel.moll@arm.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 52feaca5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment