]> git.baikalelectronics.ru Git - kernel.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)
commitb8653dc7c6541051a23197dec1f8f6a22f5b65c5
treefe6ca06b24c75ce9425db46cd425ed19e8a9201c
parent6e0d151c02b0de4a538b41d7d305f86081d493a1
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: d35baea50aef ("drivers: hwmon: Support for ASPEED PWM/Fan tach")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/aspeed-pwm-tacho.c