summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/ad7314.c
diff options
context:
space:
mode:
authorPawel Moll <pawel.moll@arm.com>2014-04-23 18:27:05 +0100
committerGuenter Roeck <linux@roeck-us.net>2014-04-24 06:02:10 -0700
commitb2e5411ee26bff1deefd0b2c7beec9c133632e65 (patch)
treefca94d153e37e215cd54e223c5f37c3e60c8ef8a /drivers/hwmon/ad7314.c
parent52feaca5d685c07a4bc9812d16d84f5f7991bfe7 (diff)
downloadblackbird-op-linux-b2e5411ee26bff1deefd0b2c7beec9c133632e65.tar.gz
blackbird-op-linux-b2e5411ee26bff1deefd0b2c7beec9c133632e65.zip
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: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Pawel Moll <pawel.moll@arm.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/ad7314.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud