hwmon: (pmbus) Always call _pmbus_read_byte in core driver
authorGuenter Roeck <guenter.roeck@ericsson.com>
Sat, 30 Jul 2011 05:19:39 +0000 (22:19 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 24 Oct 2011 18:09:40 +0000 (11:09 -0700)
commitda8e48ab483e1f54c1099bed91bfd2c302bc7ddf
tree10a2c76781ef0b1c51515d4feb71c7fa5ae6e29f
parent179144a0d4128e7588b3d613a14807402f5e7c37
hwmon: (pmbus) Always call _pmbus_read_byte in core driver

Always call _pmbus_read_byte() instead of pmbus_read_byte() in PMBus core
driver. With this change, device specific read functions can be implemented for
all registers.

Since the device specific read_byte function is now always called, we need to be
more careful with page validations. Only fail if the passed page number is larger
than 0, since -1 means "current page".

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
drivers/hwmon/pmbus/adm1275.c
drivers/hwmon/pmbus/lm25066.c
drivers/hwmon/pmbus/max34440.c
drivers/hwmon/pmbus/max8688.c
drivers/hwmon/pmbus/pmbus_core.c
drivers/hwmon/pmbus/ucd9000.c