diff options
author | Eddie James <eajames@linux.ibm.com> | 2019-03-19 22:01:58 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2019-03-29 17:51:44 +0100 |
commit | 8e6af454117a51dbf6c8a47c00180a0c235052fe (patch) | |
tree | 0bab954ac8f6a520f0df8b9f5bfc492c32d7a45a /drivers/hwmon/ntc_thermistor.c | |
parent | hwmon: (w83773g) Select REGMAP_I2C to fix build error (diff) | |
download | linux-8e6af454117a51dbf6c8a47c00180a0c235052fe.tar.xz linux-8e6af454117a51dbf6c8a47c00180a0c235052fe.zip |
hwmon: (occ) Fix power sensor indexing
In the case of power sensor version 0xA0, the sensor indexing overlapped
with the "caps" power sensors, resulting in probe failure and kernel
warnings. Fix this by specifying the next index for each power sensor
version.
Fixes: 54076cb3b5ff ("hwmon (occ): Add sensor attributes and register ...")
Cc: stable@vger.kernel.org
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Tested-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/ntc_thermistor.c')
0 files changed, 0 insertions, 0 deletions