2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 20:23:57 +08:00
linux-next/drivers/hwmon/pmbus
Guenter Roeck 9c1ed8941d hwmon: (pmbus) Add support for virtual pages
Some PMBus chips have non-standard sensor registers. An easy way to
support such sensors is to introduce virtual pages and map the non-standard
registers into standard registers on an extra page.

For this to work, the code verifying if the configured number of pages exists
has to be removed. Since a wrong number of pages can only be configured in a
front-end driver, this should not have a practical impact since the resulting
errors should be found during development and testing.

Also, functions to read the chip status while checking if a command register
exists must be modified to no longer set the page register before reading the
status, since the physical page associated with the checked register may not
exist. This does not make a functional difference since the page was already set
when the attempt to read the register was made.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
2011-07-28 17:02:15 -07:00
..
adm1275.c hwmon: (pmbus) Add support for VID output voltage mode 2011-07-28 15:31:11 -07:00
Kconfig hwmon: (pmbus) Add ADP4000, NCP4200 and NCP4208 to list of supported devices 2011-07-28 15:31:18 -07:00
Makefile
max8688.c hwmon: (pmbus) Add support for VID output voltage mode 2011-07-28 15:31:11 -07:00
max16064.c hwmon: (pmbus) Add support for VID output voltage mode 2011-07-28 15:31:11 -07:00
max34440.c hwmon: (pmbus) Add support for VID output voltage mode 2011-07-28 15:31:11 -07:00
pmbus_core.c hwmon: (pmbus) Add support for virtual pages 2011-07-28 17:02:15 -07:00
pmbus.c hwmon: (pmbus) Add ADP4000, NCP4200 and NCP4208 to list of supported devices 2011-07-28 15:31:18 -07:00
pmbus.h hwmon: (pmbus) Add support for virtual pages 2011-07-28 17:02:15 -07:00
ucd9000.c
ucd9200.c