]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / device_sysfs: Change _SUN and _STA show functions error return to EIO
authorBetty Dall <betty.dall@hpe.com>
Sat, 30 Apr 2016 16:03:38 +0000 (10:03 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 4 May 2016 21:47:31 +0000 (23:47 +0200)
commitaddf28c816a1101c66f7779a29855e6085d43845
tree5c6a66c3bc1f19c3f3f2212d3290df48f9a3e770
parent70a25051cf3293abdced6e1941d91767b1022c53
ACPI / device_sysfs: Change _SUN and _STA show functions error return to EIO

The error return from a sysfs show function is passed up through
the call chain and visible as the return from the read system call.
The show functions for the _STA and _SUN object currently return
-ENODEV. This patch changes the return to -EIO. ENODEV makes less
sense since the "device' exists or there wouldn't be a sysfs file.

Signed-off-by: Betty Dall <betty.dall@hpe.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/device_sysfs.c