hwmon: (aspeed-pwm-tacho) On read failure return -ETIMEDOUT
authorPatrick Venture <venture@google.com>
Tue, 30 May 2017 19:42:01 +0000 (12:42 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 30 May 2017 22:15:40 +0000 (15:15 -0700)
commit7ed1c5e5ddbb87aef9df7f8a8a714bcffe90f0eb
tree3c99738ca60c33f8cf559cafde0ccabcec4a4afe
parent08fd5e76c268b7a5353302825b6b63a6027ddd0a
hwmon: (aspeed-pwm-tacho) On read failure return -ETIMEDOUT

When the controller fails to provide an RPM reading within the alloted
time; the driver returns -ETIMEDOUT and no file contents.

Signed-off-by: Patrick Venture <venture@google.com>
Fixes: 2d7a548a3eff ("drivers: hwmon: Support for ASPEED PWM/Fan tach")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/aspeed-pwm-tacho.c