]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (aspeed-pwm-tacho) make fan/pwm names start with index 1
authorStefan Schaeckeler <sschaeck@cisco.com>
Fri, 2 Jun 2017 19:43:28 +0000 (12:43 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 3 Jun 2017 10:55:43 +0000 (03:55 -0700)
commit5f348fa35a28b19cf7ee1eaa420757341a724c86
treefe6ca06b24c75ce9425db46cd425ed19e8a9201c
parent4d58e7329fdd87d37f04b319d6a5165aaff5d75c
hwmon: (aspeed-pwm-tacho) make fan/pwm names start with index 1

Make fan and pwm names in sysfs start with index 1 in accordance to
Documentation/hwmon/sysfs-interface conventions.

Current implementation starts with index 0, making tools such as
sensors(1) skip the first fan.

Signed-off-by: Stefan Schaeckeler <sschaeck@cisco.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