https://github.com/torvalds/linux
Revision b2e5411ee26bff1deefd0b2c7beec9c133632e65 authored by Pawel Moll on 23 April 2014, 17:27:05 UTC, committed by Guenter Roeck on 24 April 2014, 13:02:10 UTC
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: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 52feaca
History
Tip revision: b2e5411ee26bff1deefd0b2c7beec9c133632e65 authored by Pawel Moll on 23 April 2014, 17:27:05 UTC
hwmon: (vexpress) Avoid creating non-existing attributes
Tip revision: b2e5411
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.6 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 271.4 KB
Makefile -rw-r--r-- 50.5 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top