android_kernel_oneplus_msm8998/drivers/hwmon/pmbus
Robert Hancock 66f0f0fdb9 hwmon: (pmbus/core) Treat parameters as paged if on multiple pages
[ Upstream commit 4a60570dce658e3f8885bbcf852430b99f65aca5 ]

Some chips have attributes which exist on more than one page but the
attribute is not presently marked as paged. This causes the attributes
to be generated with the same label, which makes it impossible for
userspace to tell them apart.

Marking all such attributes as paged would result in the page suffix
being added regardless of whether they were present on more than one
page or not, which might break existing setups. Therefore, we add a
second check which treats the attribute as paged, even if not marked as
such, if it is present on multiple pages.

Fixes: b4ce237b7f ("hwmon: (pmbus) Introduce infrastructure to detect sensors and limit registers")
Signed-off-by: Robert Hancock <hancock@sedsystems.ca>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-07-10 09:56:33 +02:00
..
adm1275.c hwmon: (pmbus/adm1275) Accept negative page register values 2018-05-30 07:49:13 +02:00
Kconfig hwmon: (ltc2978) Add support for LTM4675 2015-08-19 09:08:55 -07:00
lm25066.c hwmon: (pmbus) Use BIT macro 2015-08-19 09:08:17 -07:00
ltc2978.c hwmon: (ltc2978) Add support for LTM4675 2015-08-19 09:08:55 -07:00
Makefile hwmon: (pmbus) Add support for MAX20751 2015-08-09 13:44:27 -07:00
max8688.c hwmon: (pmbus/max8688) Accept negative page register values 2018-05-30 07:49:13 +02:00
max16064.c
max20751.c hwmon: (pmbus) Add support for MAX20751 2015-08-09 13:44:27 -07:00
max34440.c hwmon: (pmbus) Use BIT macro 2015-08-19 09:08:17 -07:00
pmbus.c hwmon: (pmbus) Fix page count auto-detection. 2018-11-21 09:27:30 +01:00
pmbus.h hwmon: (pmbus) Use BIT macro 2015-08-19 09:08:17 -07:00
pmbus_core.c hwmon: (pmbus/core) Treat parameters as paged if on multiple pages 2019-07-10 09:56:33 +02:00
tps40422.c
ucd9000.c
ucd9200.c
zl6100.c hwmon: (pmbus) Use BIT macro 2015-08-19 09:08:17 -07:00